{"id":17344238,"url":"https://github.com/typhoonzero/workthreadpool","last_synced_at":"2025-04-14T20:23:55.674Z","repository":{"id":35342798,"uuid":"39605082","full_name":"typhoonzero/workthreadpool","owner":"typhoonzero","description":"Lightweight non-locking thread pool for multi-threading work jobs","archived":false,"fork":false,"pushed_at":"2016-05-23T09:30:55.000Z","size":9,"stargazers_count":13,"open_issues_count":0,"forks_count":4,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-03-28T08:41:31.910Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/typhoonzero.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}},"created_at":"2015-07-24T01:50:09.000Z","updated_at":"2022-02-24T01:56:52.000Z","dependencies_parsed_at":"2022-09-17T08:51:52.711Z","dependency_job_id":null,"html_url":"https://github.com/typhoonzero/workthreadpool","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typhoonzero%2Fworkthreadpool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typhoonzero%2Fworkthreadpool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typhoonzero%2Fworkthreadpool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typhoonzero%2Fworkthreadpool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/typhoonzero","download_url":"https://codeload.github.com/typhoonzero/workthreadpool/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248953330,"owners_count":21188621,"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","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":[],"created_at":"2024-10-15T16:24:37.707Z","updated_at":"2025-04-14T20:23:55.658Z","avatar_url":"https://github.com/typhoonzero.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# workthreadpool\n\nLightweight non-locking thread pool for multi-threading work jobs..\n\n## Usage\n\n```c++\n#include \u003csstream\u003e\n#include \u003cmath.h\u003e\n#include \"workthreadpool.h\"\n\nclass MyThreadPool : public bfd::WorkThreadPool {\n public:\n  MyThreadPool(int size) : bfd::WorkThreadPool(size) {\n  }\n  void Handle(const string \u0026msg) {\n    stringstream ss;\n    ss \u003c\u003c \"worker (\" \u003c\u003c std::this_thread::get_id() \u003c\u003c \") got msg: \" \u003c\u003c msg;\n    printf(\"%s\\n\", ss.str().c_str());\n    for (int i=0; i\u003c=999999; i++) {\n      double result = sqrt(sqrt(i) / 93.234);\n    }\n  }\n};\n\nint main() {\n  printf(\"start running ....\\n\");\n  MyThreadPool pool(5);\n  pool.Start();\n  for (int i=0; i\u003c100; i++) {\n    pool.SendMessage(\"msg info ----------\");\n  }\n  pool.Stop();\n\n  return 0;\n}\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftyphoonzero%2Fworkthreadpool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftyphoonzero%2Fworkthreadpool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftyphoonzero%2Fworkthreadpool/lists"}