| 117 | |
| 118 | |
| 119 | void start_thread(THREAD_FUNC fun, func_args* args, THREAD_TYPE* thread) |
| 120 | { |
| 121 | #ifndef _POSIX_THREADS |
| 122 | *thread = (HANDLE)_beginthreadex(0, 0, fun, args, 0, 0); |
| 123 | #else |
| 124 | pthread_create(thread, 0, fun, args); |
| 125 | #endif |
| 126 | } |
| 127 | |
| 128 | |
| 129 | void join_thread(THREAD_TYPE thread) |
no test coverage detected