Skip to content

Commit

Permalink
Reacquire lock on wakeup update
Browse files Browse the repository at this point in the history
  • Loading branch information
KrusnikViers committed Aug 20, 2018
1 parent cdb4adf commit cb455a5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core_window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ CoreWindow::WindowProc(HWND hwnd, UINT msg, WPARAM w_param, LPARAM l_param) {
default:
break;
};
} else if (msg == WM_POWERBROADCAST) {
if (thread_locker_)
thread_locker_.reset(new ScopedThreadLocker());
}
return DefWindowProc(hwnd, msg, w_param, l_param);
}
Expand Down

0 comments on commit cb455a5

Please sign in to comment.