{"id":23466351,"url":"https://github.com/yuesong-feng/threadpoll","last_synced_at":"2025-10-31T00:30:57.395Z","repository":{"id":113250042,"uuid":"386559667","full_name":"yuesong-feng/ThreadPoll","owner":"yuesong-feng","description":"C++线程池","archived":false,"fork":false,"pushed_at":"2021-08-25T11:34:21.000Z","size":9,"stargazers_count":2,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-24T12:10:32.366Z","etag":null,"topics":[],"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/yuesong-feng.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-07-16T08:06:09.000Z","updated_at":"2023-09-07T16:51:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"619e40f8-0992-4cfb-aa7e-af19a9dfdf48","html_url":"https://github.com/yuesong-feng/ThreadPoll","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/yuesong-feng%2FThreadPoll","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuesong-feng%2FThreadPoll/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuesong-feng%2FThreadPoll/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuesong-feng%2FThreadPoll/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yuesong-feng","download_url":"https://codeload.github.com/yuesong-feng/ThreadPoll/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239084400,"owners_count":19578773,"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-12-24T11:56:10.537Z","updated_at":"2025-10-31T00:30:57.057Z","avatar_url":"https://github.com/yuesong-feng.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ThreadPoll\n\nC++线程池\n\n## api\n\n```c++\n#include \"ThreadPoll.h\"\n\nThreadPoll poll(int size);    //创建一个线程池，传入size表示工作线程数量\n\n/*\n    int myfunction(int i, char c, std::string str){\n        ......\n    }\n*/\nstd::function\u003cint(int, char, std::string)\u003e func = my_function;    //func可以理解为C中的函数指针，指向my_function函数，可以通过func调用\n\n/*\n    add函数定义，支持任意返回类型、任意参数类型、任意参数个数\n    template \u003ctypename T, typename... Args\u003e\n    void add(std::function\u003cT(Args...)\u003e, Args...);\n*/\npoll.add(func, 1, 'a', std::string(\"Hello World!\"));    //将func指向的函数添加到线程池，函数参数按顺序传递\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyuesong-feng%2Fthreadpoll","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyuesong-feng%2Fthreadpoll","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyuesong-feng%2Fthreadpoll/lists"}