| 43 | } |
| 44 | |
| 45 | int ZSTD_pthread_create(ZSTD_pthread_t* thread, const void* unused, |
| 46 | void* (*start_routine) (void*), void* arg) |
| 47 | { |
| 48 | (void)unused; |
| 49 | thread->arg = arg; |
| 50 | thread->start_routine = start_routine; |
| 51 | thread->handle = (HANDLE) _beginthreadex(NULL, 0, worker, thread, 0, NULL); |
| 52 | |
| 53 | if (!thread->handle) |
| 54 | return errno; |
| 55 | else |
| 56 | return 0; |
| 57 | } |
| 58 | |
| 59 | int ZSTD_pthread_join(ZSTD_pthread_t thread, void **value_ptr) |
| 60 | { |
no outgoing calls
no test coverage detected