| 48 | } |
| 49 | |
| 50 | Thread New(ThreadStart thread_start, uint32_t stack_size, void* arg, const char* name) |
| 51 | { |
| 52 | DWORD thread_id; |
| 53 | HANDLE thread = CreateThread(NULL, stack_size, |
| 54 | (LPTHREAD_START_ROUTINE) thread_start, |
| 55 | arg, 0, &thread_id); |
| 56 | assert(thread); |
| 57 | |
| 58 | SetThreadName((Thread)thread, name); |
| 59 | |
| 60 | return thread; |
| 61 | } |
| 62 | |
| 63 | void Join(Thread thread) |
| 64 | { |
nothing calls this directly
no test coverage detected