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.
Resources
No resource links recorded.