| 144 | } |
| 145 | |
| 146 | int cbm_thread_join(cbm_thread_t *t) { |
| 147 | if (WaitForSingleObject(t->handle, INFINITE) != WAIT_OBJECT_0) { |
| 148 | return CBM_NOT_FOUND; |
| 149 | } |
| 150 | CloseHandle(t->handle); |
| 151 | t->handle = NULL; |
| 152 | return 0; |
| 153 | } |
| 154 | |
| 155 | int cbm_thread_detach(cbm_thread_t *t) { |
| 156 | if (t->handle) { |
no outgoing calls