| 22 | } |
| 23 | |
| 24 | int pthread_create(pthread_t *thread, const void *attr UNUSED, |
| 25 | void *(*start_routine)(void *), void *arg) |
| 26 | { |
| 27 | thread->arg = arg; |
| 28 | thread->start_routine = start_routine; |
| 29 | thread->handle = (HANDLE)_beginthreadex(NULL, 0, win32_start_routine, |
| 30 | thread, 0, NULL); |
| 31 | |
| 32 | if (!thread->handle) |
| 33 | return errno; |
| 34 | else |
| 35 | return 0; |
| 36 | } |
| 37 | |
| 38 | int win32_pthread_join(pthread_t *thread, void **value_ptr) |
| 39 | { |
no outgoing calls