make sure execute before exit
| 115 | |
| 116 | // make sure execute before exit |
| 117 | void BaseThread::Cleanup(void* param) |
| 118 | { |
| 119 | BaseThread* thread = static_cast<BaseThread*>(param); |
| 120 | thread->m_is_alive = false; |
| 121 | thread->OnExit(); |
| 122 | } |
| 123 | |
| 124 | void BaseThread::OnExit() |
| 125 | { |