Registry / async / pthreadpool

pthreadpool

JSON →
library2024-11-04vcpkgunverified

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

async
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.

#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 footguns

No known footguns recorded.

Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
15 hits · last 30 days
gptbot
3
amazonbot
3
claudebot
3
mj12bot
1
Resources

No resource links recorded.