Skip to content

Commit

Permalink
The vsync lock just for vsync_waiter
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaowei-guan committed Aug 23, 2023
1 parent 0408363 commit 5eeed2e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions flutter/shell/platform/tizen/flutter_tizen_engine.cc
Original file line number Diff line number Diff line change
Expand Up @@ -269,9 +269,11 @@ bool FlutterTizenEngine::StopEngine() {
callback(registrar);
}
#ifndef WEARABLE_PROFILE
std::lock_guard<std::mutex> lock(vsync_mutex_);
if (vsync_waiter_) {
vsync_waiter_.reset();
{
std::lock_guard<std::mutex> lock(vsync_mutex_);
if (vsync_waiter_) {
vsync_waiter_.reset();
}
}
#endif
FlutterEngineResult result = embedder_api_.Shutdown(engine_);
Expand Down

0 comments on commit 5eeed2e

Please sign in to comment.