fix issues like null point check.

Signed-off-by: boxwall <hezhiqiang19@huawei.com>
Change-Id: Ieac2de6ea8883887c6373ffcfba4a5fe03f420a2
This commit is contained in:
boxwall
2022-03-24 22:22:51 +08:00
parent cbd1acc242
commit 99480afe48
41 changed files with 54 additions and 32 deletions
Executable → Regular
+3
View File
@@ -42,6 +42,9 @@ bool EventHandler::IsRunning()
void EventHandler::EventDispatch(EventHandler *hdl)
{
if (hdl == nullptr) {
return;
}
std::unique_lock<std::mutex> lock(hdl->mtx_);
hdl->running_ = true;
while (hdl->running_) {