mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-27 07:12:40 +02:00
Added eventActive().
This commit is contained in:
parent
ced4f16ee1
commit
63e0e3502c
@ -23,6 +23,12 @@ Result eventCreate(Event* t, bool autoclear);
|
|||||||
void eventLoadRemote(Event* t, Handle handle, bool autoclear);
|
void eventLoadRemote(Event* t, Handle handle, bool autoclear);
|
||||||
void eventClose(Event* t);
|
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 eventWait(Event* t, u64 timeout);
|
||||||
Result eventFire(Event* t);
|
Result eventFire(Event* t);
|
||||||
Result eventClear(Event* t);
|
Result eventClear(Event* t);
|
||||||
|
Loading…
Reference in New Issue
Block a user