mirror of
https://github.com/mpv-player/mpv
synced 2024-12-26 00:42:57 +00:00
3b091995a0
We now use threads and other pthread API a lot, and not always we use it from threads created with pthread_create() (or the main thread). As I understand, with static linking we would have to use pthread_win32_thread_attach/detach_np() every time we enter or leave a foreign thread. We don't do this, and it's not feasible either, so it's just broken. This still should work with dynamic pthreads-win32. The MinGW pthread implementation should be unaffected from all of this.
7 lines
155 B
C
7 lines
155 B
C
#include <pthread.h>
|
|
static void *func(void *arg) { return arg; }
|
|
int main(void) {
|
|
pthread_t tid;
|
|
return pthread_create (&tid, 0, func, 0) != 0;
|
|
}
|