mirror of
https://github.com/RPCSX/rpcsx.git
synced 2025-12-06 07:12:14 +01:00
16 lines
293 B
C++
16 lines
293 B
C++
|
|
#include "event.hpp"
|
||
|
|
#include "thread/Process.hpp"
|
||
|
|
|
||
|
|
orbis::KNote::~KNote() {
|
||
|
|
if (linked == nullptr) {
|
||
|
|
return;
|
||
|
|
}
|
||
|
|
|
||
|
|
if (event.filter == kEvFiltProc) {
|
||
|
|
auto proc = static_cast<Process *>(linked);
|
||
|
|
|
||
|
|
std::lock_guard lock(proc->event.mutex);
|
||
|
|
proc->event.notes.erase(this);
|
||
|
|
}
|
||
|
|
}
|