From a3ea0b24409b89bd08c0a2268dbae834724734df Mon Sep 17 00:00:00 2001
From: rpj
BOOL pthread_win32_thread_attach_np (void);
BOOL pthread_win32_thread_detach_np (void);
These functions contain the code normally run via dllMain +
These functions contain the code normally run via dllMain when the library is used as a dll but which need to be called -explicitly by an application when the library is statically linked.
+explicitly by an application when the library is statically linked. As of version 2.9.0, the static library built using either MSC or GCC includes RT hooks which will call the pthread_win32_process_*_np routines automatically on start/exit of the application.You will need to call pthread_win32_process_attach_np before you can call any pthread routines when statically linking. You should call pthread_win32_process_detach_np before exiting -- cgit v1.2.3