summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/nvdrv/nvdrv.cpp
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2021-11-05 02:57:14 +0100
committerFernando Sahmkow <fsahmkow27@gmail.com>2022-10-06 21:00:51 +0200
commitad038609c877ad54dde7b9592f0584deb56a27c5 (patch)
tree1588b1ae2babbf23d40cd1105d02edbaec42e04f /src/core/hle/service/nvdrv/nvdrv.cpp
parentNVMAP: Fix the Free return parameters. (diff)
downloadyuzu-ad038609c877ad54dde7b9592f0584deb56a27c5.tar
yuzu-ad038609c877ad54dde7b9592f0584deb56a27c5.tar.gz
yuzu-ad038609c877ad54dde7b9592f0584deb56a27c5.tar.bz2
yuzu-ad038609c877ad54dde7b9592f0584deb56a27c5.tar.lz
yuzu-ad038609c877ad54dde7b9592f0584deb56a27c5.tar.xz
yuzu-ad038609c877ad54dde7b9592f0584deb56a27c5.tar.zst
yuzu-ad038609c877ad54dde7b9592f0584deb56a27c5.zip
Diffstat (limited to 'src/core/hle/service/nvdrv/nvdrv.cpp')
-rw-r--r--src/core/hle/service/nvdrv/nvdrv.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/core/hle/service/nvdrv/nvdrv.cpp b/src/core/hle/service/nvdrv/nvdrv.cpp
index ff8c7c13c..208de0b75 100644
--- a/src/core/hle/service/nvdrv/nvdrv.cpp
+++ b/src/core/hle/service/nvdrv/nvdrv.cpp
@@ -29,7 +29,7 @@
namespace Service::Nvidia {
-EventInterface::EventInterface(Module& module_) : module{module_} {}
+EventInterface::EventInterface(Module& module_) : module{module_}, guard{}, on_signal{} {}
EventInterface::~EventInterface() = default;
@@ -40,10 +40,7 @@ void EventInterface::RegisterForSignal(Devices::nvhost_ctrl* device) {
void EventInterface::UnregisterForSignal(Devices::nvhost_ctrl* device) {
std::unique_lock<std::mutex> lk(guard);
- auto it = std::find(on_signal.begin(), on_signal.end(), device);
- if (it != on_signal.end()) {
- on_signal.erase(it);
- }
+ on_signal.remove(device);
}
void EventInterface::Signal(u32 syncpoint_id, u32 value) {