void WsThreadHelper::wsThreadEntryFunc() { _ws->onSubThreadStarted(); while (!_needQuit) { if (_ws->onSubThreadLoop()) { break; } } _ws->onSubThreadEnded(); }
void* WsThreadHelper::wsThreadEntryFunc(void* arg) { _ws->onSubThreadStarted(); while (!_needQuit) { if (_ws->onSubThreadLoop()) { break; } } _ws->onSubThreadEnded(); return (void*)0; }