mirror of
https://github.com/openharmony/multimedia_camera_lite.git
synced 2026-07-19 16:53:38 -04:00
fix issues like null point check.
Signed-off-by: boxwall <hezhiqiang19@huawei.com> Change-Id: Ieac2de6ea8883887c6373ffcfba4a5fe03f420a2
This commit is contained in:
Executable → Regular
+3
@@ -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_) {
|
||||
|
||||
Reference in New Issue
Block a user