mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-11-14 16:09:59 +00:00
event: added SetEventLocked method to change status an events lock
This commit is contained in:
parent
fd69fd0325
commit
beea6f054a
2 changed files with 18 additions and 0 deletions
|
@ -50,6 +50,17 @@ public:
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Changes whether an event is locked or not
|
||||||
|
* @param handle Handle to event to change
|
||||||
|
* @param locked Boolean locked value to set event
|
||||||
|
*/
|
||||||
|
void SetEventLocked(const Handle handle, const bool locked) {
|
||||||
|
Event* evt = g_object_pool.GetFast<Event>(handle);
|
||||||
|
evt->locked = locked;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Clears an event
|
* Clears an event
|
||||||
* @param handle Handle to event to clear
|
* @param handle Handle to event to clear
|
||||||
|
|
|
@ -11,6 +11,13 @@
|
||||||
|
|
||||||
namespace Kernel {
|
namespace Kernel {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Changes whether an event is locked or not
|
||||||
|
* @param handle Handle to event to change
|
||||||
|
* @param locked Boolean locked value to set event
|
||||||
|
*/
|
||||||
|
void SetEventLocked(const Handle handle, const bool locked)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Clears an event
|
* Clears an event
|
||||||
* @param handle Handle to event to clear
|
* @param handle Handle to event to clear
|
||||||
|
|
Loading…
Reference in a new issue