{"id":21198492,"url":"https://github.com/conorwilliams/threadpool","last_synced_at":"2025-10-04T11:07:37.085Z","repository":{"id":43172189,"uuid":"345601508","full_name":"ConorWilliams/Threadpool","owner":"ConorWilliams","description":"Light, fast, threadpool for C++20 ","archived":false,"fork":false,"pushed_at":"2023-03-26T16:53:01.000Z","size":1165,"stargazers_count":104,"open_issues_count":2,"forks_count":9,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-10-03T08:47:31.476Z","etag":null,"topics":["cpp20","lock-free","threadpool","work-stealing"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ConorWilliams.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":"2021-03-08T09:33:09.000Z","updated_at":"2025-09-17T14:31:43.000Z","dependencies_parsed_at":"2024-11-20T19:52:03.300Z","dependency_job_id":"e9f7c86a-0636-4195-9378-4b10f94286a4","html_url":"https://github.com/ConorWilliams/Threadpool","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/ConorWilliams/Threadpool","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ConorWilliams%2FThreadpool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ConorWilliams%2FThreadpool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ConorWilliams%2FThreadpool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ConorWilliams%2FThreadpool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ConorWilliams","download_url":"https://codeload.github.com/ConorWilliams/Threadpool/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ConorWilliams%2FThreadpool/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278302555,"owners_count":25964523,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-04T02:00:05.491Z","response_time":63,"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":["cpp20","lock-free","threadpool","work-stealing"],"created_at":"2024-11-20T19:51:54.754Z","updated_at":"2025-10-04T11:07:37.076Z","avatar_url":"https://github.com/ConorWilliams.png","language":"C++","readme":"# `riften::Thiefpool`\n\nA blazing-fast, lightweight, work-stealing thread-pool for C++20. Built on the lock-free concurrent [`riften::Deque`](https://github.com/ConorWilliams/ConcurrentDeque).\n\n## Usage\n\n```C++\n#include \"riften/thiefpool.hpp\"\n\n// Create thread pool with 4 worker threads.\nriften::Thiefpool pool(4);\n\n// Enqueue and return future.\nauto result = pool.enqueue([](int x) { return x; }, 42);\n\n// Get result from future.\nstd::cout \u003c\u003c result.get() \u003c\u003c std::endl;\n```\n\nAdditionally, `riften::Thiefpool` supplies a detaching version of enqueue:\n\n```C++\n// Enqueue and return nothing\npool.enqueue_detach([](int x) { do_work(x); }, x);\n```\nWhich elides the allocation of a `std::future`'s shared state.\n\n## Installation\n\nThe recommended way to consume this library is through [CPM.cmake](https://github.com/cpm-cmake/CPM.cmake), just add:\n\n```CMake\nCPMAddPackage(\"gh:ConorWilliams/Threadpool#v2.1.1\")\n```\nto your `CMakeLists.txt` and you're good to go!\n\n## Tests\n\nTo compile and run the tests:\n```zsh\nmkdir build \u0026\u0026 cd build\ncmake ../test\nmake \u0026\u0026 make test\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconorwilliams%2Fthreadpool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fconorwilliams%2Fthreadpool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconorwilliams%2Fthreadpool/lists"}