[UI] Remove dtor lock as thread join will be done anyway
This commit is contained in:
parent
7e6cf349e2
commit
ddc3885795
|
@ -22,14 +22,8 @@ GTKWindowedAppContext::~GTKWindowedAppContext() {
|
|||
if (quit_idle_pending_) {
|
||||
g_source_remove(quit_idle_pending_);
|
||||
}
|
||||
{
|
||||
// Lock the mutex for a pending_functions_idle_pending_ access memory
|
||||
// barrier, even though no other threads can access this object anymore.
|
||||
std::lock_guard<std::mutex> pending_functions_idle_pending_lock(
|
||||
pending_functions_idle_pending_mutex_);
|
||||
if (pending_functions_idle_pending_) {
|
||||
g_source_remove(pending_functions_idle_pending_);
|
||||
}
|
||||
if (pending_functions_idle_pending_) {
|
||||
g_source_remove(pending_functions_idle_pending_);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue