{"id":38094119,"url":"https://github.com/nysynysy2/threadpool-cpp17","last_synced_at":"2026-01-16T21:00:01.586Z","repository":{"id":184597204,"uuid":"672170922","full_name":"nysynysy2/ThreadPool-cpp17","owner":"nysynysy2","description":"Header Only, Dynamic Adjust, Super-light-weight, C++17","archived":false,"fork":false,"pushed_at":"2023-10-04T09:42:08.000Z","size":53,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-10-05T08:24:45.738Z","etag":null,"topics":["cpp","header-only","lightweight","thread-pool","threading","threadpool"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nysynysy2.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-07-29T06:43:31.000Z","updated_at":"2023-10-04T05:34:21.000Z","dependencies_parsed_at":"2023-08-01T06:28:31.383Z","dependency_job_id":"882ed554-61f5-4399-aa10-76dfc2bc5dfc","html_url":"https://github.com/nysynysy2/ThreadPool-cpp17","commit_stats":null,"previous_names":["nysynysy2/threadpool","nysynysy2/simplestthreadpool","nysynysy2/practicalthreadpool","nysynysy2/threadpool-easy-to-use","nysynysy2/threadpool-light-weight","nysynysy2/threadpool-super-light-weight"],"tags_count":0,"template":null,"template_full_name":null,"purl":"pkg:github/nysynysy2/ThreadPool-cpp17","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nysynysy2%2FThreadPool-cpp17","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nysynysy2%2FThreadPool-cpp17/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nysynysy2%2FThreadPool-cpp17/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nysynysy2%2FThreadPool-cpp17/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nysynysy2","download_url":"https://codeload.github.com/nysynysy2/ThreadPool-cpp17/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nysynysy2%2FThreadPool-cpp17/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28482471,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["cpp","header-only","lightweight","thread-pool","threading","threadpool"],"created_at":"2026-01-16T21:00:01.097Z","updated_at":"2026-01-16T21:00:01.576Z","avatar_url":"https://github.com/nysynysy2.png","language":"C++","readme":"# Header Only DynamicAdjust LightWeightl Thread Pool (C++17)\n```cpp\nThreadPool(size_t thread_count = std::thread::hardware_concurrency(), bool adjust_enabled = true, size_t max_thread = 100, size_t min_thread = 1, size_t manage_duration_ms = 3000)\n\nstd::shared_future\u003ctypename std::invoke_result\u003cFn, Args...\u003e::type\u003e add_task(Fn func, Args\u0026\u0026... args)\nstd::shared_future\u003ctypename std::invoke_result\u003cFn, Args...\u003e::type\u003e add_task_delay(size_t delay_ms, Fn func, Args\u0026\u0026... args)\n\nvoid wait()\n\nvoid stop_and_join()\nvoid stop_and_detach()\n\nvoid set_adjust_enabled(bool enabled)\n\nvoid set_max_thread_count(size_t val)\nvoid set_min_thread_count(size_t val)\n\nsize_t get_max_thread_count()const\nsize_t get_min_thread_count()const\n\nsize_t get_working_thread_count()const\nsize_t get_alive_thread_count()const\nbool is_adjust_enabled()const\n\nbool is_stopped()const\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnysynysy2%2Fthreadpool-cpp17","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnysynysy2%2Fthreadpool-cpp17","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnysynysy2%2Fthreadpool-cpp17/lists"}