| 52 | } |
| 53 | |
| 54 | int cbm_thread_join(cbm_thread_t *t) { |
| 55 | if (WaitForSingleObject(t->handle, INFINITE) != WAIT_OBJECT_0) { |
| 56 | return CBM_NOT_FOUND; |
| 57 | } |
| 58 | CloseHandle(t->handle); |
| 59 | t->handle = NULL; |
| 60 | return 0; |
| 61 | } |
| 62 | |
| 63 | int cbm_thread_detach(cbm_thread_t *t) { |
| 64 | if (t->handle) { |
no outgoing calls