| 2 | |
| 3 | #ifdef _WIN32 |
| 4 | void |
| 5 | thd_create(thd_t *thd, void *(*proc)(void *), void *arg) { |
| 6 | LPTHREAD_START_ROUTINE routine = (LPTHREAD_START_ROUTINE)proc; |
| 7 | *thd = CreateThread(NULL, 0, routine, arg, 0, NULL); |
| 8 | if (*thd == NULL) { |
| 9 | test_fail("Error in CreateThread()\n"); |
| 10 | } |
| 11 | } |
| 12 | |
| 13 | void |
| 14 | thd_join(thd_t thd, void **ret) { |
no test coverage detected