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