Added eventActive().

This commit is contained in:
yellows8 2018-12-19 12:56:01 -05:00
parent ced4f16ee1
commit 63e0e3502c

View File

@ -23,6 +23,12 @@ Result eventCreate(Event* t, bool autoclear);
void eventLoadRemote(Event* t, Handle handle, bool autoclear);
void eventClose(Event* t);
/// Returns whether the Event is initialized.
static inline bool eventActive(Event* t)
{
return t->revent != INVALID_HANDLE;
}
Result eventWait(Event* t, u64 timeout);
Result eventFire(Event* t);
Result eventClear(Event* t);