Registry / async / pthreads

pthreads

JSON →
library3.0.0vcpkgunverified

Meta-package that provides PThreads4W on Windows, or assumes presence of system pthreads on POSIX systems.

vcpkg install pthreads
INSTALL
IMPORT
SIG · PTHREADS
P
pthreads
asynccppv3.0.0
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.

pthread.h
#include <pthread.h>

Creating a thread with pthreads

#include <pthread.h> #include <iostream> void* thread_func(void* arg) { std::cout << "Hello from thread!" << std::endl; return nullptr; } int main() { pthread_t thread; pthread_create(&thread, nullptr, thread_func, nullptr); pthread_join(thread, nullptr); return 0; }
Debug
Known issues
gotchaOn Windows, pthreads4w may have different behavior than POSIX pthreads
fix
Test thoroughly on Windows if cross-platform compatibility is needed
affects: *
Upgrade
Version history
3.0.0latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

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

No resource links recorded.

pthreads — pip install pthreads · libregistry