{"id":19308005,"url":"https://github.com/srijanmukherjee/thread-pool-c","last_synced_at":"2026-06-11T22:31:41.946Z","repository":{"id":188122342,"uuid":"678143396","full_name":"srijanmukherjee/thread-pool-c","owner":"srijanmukherjee","description":"thread pool implementation in c","archived":false,"fork":false,"pushed_at":"2023-08-13T20:32:02.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-24T03:16:03.585Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/srijanmukherjee.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}},"created_at":"2023-08-13T20:29:23.000Z","updated_at":"2023-08-13T20:30:46.000Z","dependencies_parsed_at":"2023-08-13T21:41:44.843Z","dependency_job_id":null,"html_url":"https://github.com/srijanmukherjee/thread-pool-c","commit_stats":null,"previous_names":["srijanmukherjee/thread-pool-c"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/srijanmukherjee/thread-pool-c","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srijanmukherjee%2Fthread-pool-c","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srijanmukherjee%2Fthread-pool-c/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srijanmukherjee%2Fthread-pool-c/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srijanmukherjee%2Fthread-pool-c/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/srijanmukherjee","download_url":"https://codeload.github.com/srijanmukherjee/thread-pool-c/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srijanmukherjee%2Fthread-pool-c/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34221150,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-11T02:00:06.485Z","response_time":57,"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":[],"created_at":"2024-11-10T00:13:19.453Z","updated_at":"2026-06-11T22:31:41.916Z","avatar_url":"https://github.com/srijanmukherjee.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Threadpool in C\nA very basic thread pool implementation in C. \n\n## Instructions\n```bash\n./build.sh\n./bin/tpool-example\n```\n\nSend SIGUSR1 signal to add a task to the pool.\n\n**Note:** This is a very basic implementation, more features will be added in the near future.\n\n## Usage\n\nInclude the `src/tpool.h` file into your project, and add `src/tpool.c` during compilation.\n\n1. Creating a thread pool\n```c\nint tpool_init(tpool *pool, size_t thread_count);\n```\n\n2. Adding a task to the pool\n```c\nssize_t tpool_add_task(tpool *pool, void* (*start_routine)(void*), void* args);\n```\n**returns:** -1 on error, otherwise gives the assigned `task id`\n\n3. Destroying thread pool\n```c\nint tpool_destroy(tpool *pool);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsrijanmukherjee%2Fthread-pool-c","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsrijanmukherjee%2Fthread-pool-c","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsrijanmukherjee%2Fthread-pool-c/lists"}