{"id":17910147,"url":"https://github.com/austingebauer/c-pthread-pool","last_synced_at":"2025-04-03T06:28:50.406Z","repository":{"id":117860622,"uuid":"420255829","full_name":"austingebauer/c-pthread-pool","owner":"austingebauer","description":"C thread pool implementation using POSIX threads (pthreads)","archived":false,"fork":false,"pushed_at":"2022-03-05T06:31:13.000Z","size":4,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-08T20:23:58.258Z","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/austingebauer.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-10-22T22:18:29.000Z","updated_at":"2022-02-04T22:42:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"fc6a86f1-594c-405a-8986-4a44f2b03a4a","html_url":"https://github.com/austingebauer/c-pthread-pool","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/austingebauer%2Fc-pthread-pool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/austingebauer%2Fc-pthread-pool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/austingebauer%2Fc-pthread-pool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/austingebauer%2Fc-pthread-pool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/austingebauer","download_url":"https://codeload.github.com/austingebauer/c-pthread-pool/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246946987,"owners_count":20859198,"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-28T19:29:21.938Z","updated_at":"2025-04-03T06:28:50.385Z","avatar_url":"https://github.com/austingebauer.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# c-pthread-pool\n\nC thread pool implementation using POSIX threads (pthreads).\n\n## Usage\n\n```c\n#include \"threadpool.h\"\n\nstruct worker_arg {\n    char* filepath;\n    int writefd;\n};\n\n// Create the thread pool with 8 threads\nthreadpool_t* tpool = create_thread_pool(8);\n\n// Enqueue work for the thread pool\nstruct worker_arg warg;\nwarg.filepath = buffer;\nwarg.writefd = writefd;\nenqueue_thread_pool(tpool, file_worker, \u0026warg);\n\nvoid* file_worker(void* arg) {\n    // Parse the worker_arg\n    struct worker_arg* warg = (struct worker_arg*) arg;\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faustingebauer%2Fc-pthread-pool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faustingebauer%2Fc-pthread-pool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faustingebauer%2Fc-pthread-pool/lists"}