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