| 33 | } |
| 34 | |
| 35 | void SimpleThread::join() |
| 36 | { |
| 37 | if (thread != nullptr && thread->handle != NULL) { |
| 38 | WaitForSingleObject(thread->handle, INFINITE); |
| 39 | CloseHandle(thread->handle); |
| 40 | thread->handle = NULL; |
| 41 | } |
| 42 | } |
| 43 | #else |
| 44 | #include <thread> |
| 45 |
no outgoing calls