mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-04-22 04:24:44 +00:00
Scoped lock
This commit is contained in:
parent
b95576f6e3
commit
cda002e0fd
1 changed files with 2 additions and 2 deletions
|
@ -87,6 +87,8 @@ ImeDialogState::~ImeDialogState() {
|
|||
}
|
||||
|
||||
bool ImeDialogState::CallTextFilter() {
|
||||
std::scoped_lock lock(mutex);
|
||||
|
||||
if (!text_filter || !input_changed) {
|
||||
return true;
|
||||
}
|
||||
|
@ -299,8 +301,6 @@ void ImeDialogUi::Draw() {
|
|||
return;
|
||||
}
|
||||
|
||||
std::scoped_lock lock2{state->mutex};
|
||||
|
||||
const auto& ctx = *GetCurrentContext();
|
||||
const auto& io = ctx.IO;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue