mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-02 22:28:45 +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() {
|
bool ImeDialogState::CallTextFilter() {
|
||||||
|
std::scoped_lock lock(mutex);
|
||||||
|
|
||||||
if (!text_filter || !input_changed) {
|
if (!text_filter || !input_changed) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -299,8 +301,6 @@ void ImeDialogUi::Draw() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::scoped_lock lock2{state->mutex};
|
|
||||||
|
|
||||||
const auto& ctx = *GetCurrentContext();
|
const auto& ctx = *GetCurrentContext();
|
||||||
const auto& io = ctx.IO;
|
const auto& io = ctx.IO;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue