diff options
| author | Lioncache <mai.iam2048@gmail.com> | 2023-12-22 14:07:13 -0500 |
|---|---|---|
| committer | Lioncache <mai.iam2048@gmail.com> | 2023-12-22 14:19:29 -0500 |
| commit | a23cf2121d73946c951955a77297c7d592d5ad42 (patch) | |
| tree | 81506fe06c1eee77de265f72d3de605fffd9d5e9 /Source/Core/VideoCommon/PixelEngine.cpp | |
| parent | 0505f057ca8cc401494d9d1214b3507b14ea027e (diff) | |
VideoCommon/PixelEngine: Generify lock guards
We don't need to specify the type of the mutex being passed in.
Diffstat (limited to 'Source/Core/VideoCommon/PixelEngine.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/PixelEngine.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/VideoCommon/PixelEngine.cpp b/Source/Core/VideoCommon/PixelEngine.cpp index b864292863..63642d017d 100644 --- a/Source/Core/VideoCommon/PixelEngine.cpp +++ b/Source/Core/VideoCommon/PixelEngine.cpp @@ -179,7 +179,7 @@ void PixelEngineManager::SetTokenFinish_OnMainThread_Static(Core::System& system void PixelEngineManager::SetTokenFinish_OnMainThread(u64 userdata, s64 cycles_late) { - std::unique_lock<std::mutex> lk(m_token_finish_mutex); + std::unique_lock lk(m_token_finish_mutex); m_event_raised = false; m_token = m_token_pending; @@ -230,7 +230,7 @@ void PixelEngineManager::SetToken(const u16 token, const bool interrupt, int cyc { DEBUG_LOG_FMT(PIXELENGINE, "VIDEO Backend raises INT_CAUSE_PE_TOKEN (btw, token: {:04x})", token); - std::lock_guard<std::mutex> lk(m_token_finish_mutex); + std::lock_guard lk(m_token_finish_mutex); m_token_pending = token; m_token_interrupt_pending |= interrupt; @@ -244,7 +244,7 @@ void PixelEngineManager::SetFinish(int cycles_into_future) { DEBUG_LOG_FMT(PIXELENGINE, "VIDEO Set Finish"); - std::lock_guard<std::mutex> lk(m_token_finish_mutex); + std::lock_guard lk(m_token_finish_mutex); m_finish_interrupt_pending |= true; |
