Go to the source code of this file.
Initializes an event object.
- Parameters
-
Event | A pointer to an event object. |
Definition at line 58 of file sync.c.
Resets an event's state.
- Parameters
-
Event | A pointer to an event object. |
Definition at line 210 of file sync.c.
Sets an event object.
Any threads waiting on the event will be released.
- Parameters
-
Event | A pointer to an event object. |
Definition at line 110 of file sync.c.
Waits until all threads are blocking on the barrier, and resets the state of the barrier.
- Parameters
-
Barrier | A barrier. |
Spin | TRUE to spin on the barrier before blocking, FALSE to block immediately. |
- Returns
- TRUE for an unspecified thread after each phase, and FALSE for all other threads.
Definition at line 281 of file sync.c.
BOOLEAN FASTCALL PhfWaitForEvent |
( |
_Inout_ PPH_EVENT |
Event, |
|
|
_In_opt_ PLARGE_INTEGER |
Timeout |
|
) |
| |
Waits for an event object to be set.
- Parameters
-
Event | A pointer to an event object. |
Timeout | The timeout value. |
- Returns
- TRUE if the event object was set before the timeout period expired, otherwise FALSE.
Definition at line 142 of file sync.c.
FORCEINLINE VOID PhpBlockOnBarrier |
( |
_Inout_ PPH_BARRIER |
Barrier, |
|
|
_In_ ULONG |
Role, |
|
|
_In_ BOOLEAN |
Spin |
|
) |
| |
FORCEINLINE VOID PhpDereferenceEvent |
( |
_Inout_ PPH_EVENT |
Event, |
|
|
_In_opt_ HANDLE |
EventHandle |
|
) |
| |
Dereferences the event object used by an event.
- Parameters
-
Event | A pointer to an event object. |
EventHandle | The current value of the event object. |
Definition at line 72 of file sync.c.
References the event object used by an event.
- Parameters
-
Event | A pointer to an event object. |
Definition at line 97 of file sync.c.