{"id":20290637,"url":"https://github.com/notdodo/threadpool","last_synced_at":"2026-03-08T04:31:29.778Z","repository":{"id":82510560,"uuid":"52261478","full_name":"notdodo/threadpool","owner":"notdodo","description":"A very fast and lightweight C++14 thread pool library (general purpose)","archived":false,"fork":false,"pushed_at":"2021-12-13T08:12:49.000Z","size":18,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-11T11:48:10.191Z","etag":null,"topics":["threadpool"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/notdodo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2016-02-22T09:18:47.000Z","updated_at":"2021-12-13T08:12:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"2eeb449c-98ff-4def-9c59-5ac1cc5a4de5","html_url":"https://github.com/notdodo/threadpool","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/notdodo/threadpool","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/notdodo%2Fthreadpool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/notdodo%2Fthreadpool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/notdodo%2Fthreadpool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/notdodo%2Fthreadpool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/notdodo","download_url":"https://codeload.github.com/notdodo/threadpool/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/notdodo%2Fthreadpool/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30245213,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-08T00:58:18.660Z","status":"online","status_checked_at":"2026-03-08T02:00:06.215Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["threadpool"],"created_at":"2024-11-14T15:08:34.252Z","updated_at":"2026-03-08T04:31:29.768Z","avatar_url":"https://github.com/notdodo.png","language":"C++","readme":"# ThreadPool\nA very fast and lightweight C++14 thread pool library (general purpose)\n\n# Example\nThe library is very easy to use: just `#include` it to your project, create the object `ThreadPool pool(_numberofcores)` and add tasks to pool using `AddTask` functions.\n\n```c++\n#include \"ThreadPool.h\"\n#include \u003ciostream\u003e\n\nint main(int argc, char **argv) {\n\t// number of task to exec\n\tconst int TASKS=100000;\n\n\tThreadPool pool(std::thread::hardware_concurrency() + 1);\n\tfor(int i = 0; i \u003c TASKS; i++)\n\t\tpool.AddTask([i]{ std::cout \u003c\u003c \"I'm task # \" \u003c\u003c i \u003c\u003c \" doing some stuffs\" \u003c\u003c std::endl; });\n\n\t// wait for all tasks to finish, not necessary in this case: when `pool` goes out of scope it will automatically call `JoinAll`.\n\tpool.JoinAll();\n\treturn 0;\n}\n```\n\n### Development\n\n\tAdd support for `future`\n\tAdd support for multitemplate functions\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnotdodo%2Fthreadpool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnotdodo%2Fthreadpool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnotdodo%2Fthreadpool/lists"}