{"id":16382645,"url":"https://github.com/jeremyko/kothreadpool","last_synced_at":"2025-08-29T16:26:46.902Z","repository":{"id":147497429,"uuid":"106149545","full_name":"jeremyko/kothreadpool","owner":"jeremyko","description":"simple c++ thread pool ","archived":false,"fork":false,"pushed_at":"2025-01-18T12:49:37.000Z","size":22,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-18T02:20:48.844Z","etag":null,"topics":["thread","thread-pool"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jeremyko.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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}},"created_at":"2017-10-08T04:16:32.000Z","updated_at":"2025-01-18T12:49:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"113d9c08-a199-40d3-b54a-4441cb062720","html_url":"https://github.com/jeremyko/kothreadpool","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jeremyko/kothreadpool","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeremyko%2Fkothreadpool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeremyko%2Fkothreadpool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeremyko%2Fkothreadpool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeremyko%2Fkothreadpool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jeremyko","download_url":"https://codeload.github.com/jeremyko/kothreadpool/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeremyko%2Fkothreadpool/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272718893,"owners_count":24981492,"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-08-29T02:00:10.610Z","response_time":87,"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":["thread","thread-pool"],"created_at":"2024-10-11T04:05:57.744Z","updated_at":"2025-08-29T16:26:46.852Z","avatar_url":"https://github.com/jeremyko.png","language":"C++","readme":"\n# KoThreadPool #\n\n### What ###\n\nsimple thread pool library for c++  \n\n### Usage ###\n\nsee sample directory\n\n```cpp\n\nMyClass myclass; //has member function : void MyThreadWork1(), void MyThreadWork2(int,int,int)\nvoid MyThreadWork() ; //free function\n\nKoThreadPool tpool;\n\ntpool.InitThreadPool(); \n//tpool.InitThreadPool(4); //explicit thread worker count \n\ntpool.SetWaitingCnt(3); //set total work count    \n\n//assign your work.\nstd::function\u003cvoid()\u003e temp_func1 = std::bind( \u0026MyClass::MyThreadWork1, \u0026myclass)  ;\ntpool.AssignTask(temp_func1 )  ;\n\nstd::function\u003cvoid()\u003e temp_func2 = std::bind( \u0026MyClass::MyThreadWork2, \u0026myclass,1,1,1)  ;\ntpool.AssignTask(temp_func2 )  ;\n\nstd::function\u003cvoid()\u003e temp_func3 = std::bind( \u0026MyThreadWork )  ;\ntpool.AssignTask(temp_func3 )  ;\n\n//wait all 3 works done.\n//or you can call \"Terminate(true)\" here to exit program. \ntpool.WaitAllWorkDone(); // --\u003e blocking call. \n\n\n//At the end of the program, exit the thread pool.\ntpool.Terminate(); //graceful terminate : wait until all work done\n//tpool.Terminate(true); // terminate immediately\n\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeremyko%2Fkothreadpool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjeremyko%2Fkothreadpool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeremyko%2Fkothreadpool/lists"}