Registry / async / pthreadpool

pthreadpool

JSON →
library2024-11-04vcpkgunverified

Portable (POSIX/Windows/Emscripten) thread pool for C/C++

vcpkg install pthreadpool
INSTALL
IMPORT
SIG · PTHREADPOOL
P
pthreadpool
asynccppv2024-11-04
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

pthreadpool.h
#include <pthreadpool.h>

Create a thread pool and parallelize a 1D loop

#include <pthreadpool.h> #include <stdio.h> void work(void* arg) { printf("Thread %zu\n", (size_t)arg); } int main() { pthreadpool_t pool = pthreadpool_create(4); pthreadpool_parallelize_1d(pool, work, (void*)0, 10, 0); pthreadpool_destroy(pool); return 0; }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2024-11-04latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
28 hits · last 30 days
node
26
OpenAI (training)
1
Resources

No resource links recorded.

pthreadpool — pip install pthreadpool · libregistry