Skip to content
Snippets Groups Projects
Commit beea6f05 authored by bunnei's avatar bunnei
Browse files

event: added SetEventLocked method to change status an events lock

parent fd69fd03
No related branches found
No related tags found
No related merge requests found
...@@ -50,6 +50,17 @@ public: ...@@ -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 @@ ...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment