FreeRDP
|
#include <winpr/config.h>
#include <winpr/assert.h>
#include <winpr/crt.h>
#include <winpr/collections.h>
Functions | |
size_t | CountdownEvent_CurrentCount (wCountdownEvent *countdown) |
return the current event count of the CountdownEvent More... | |
size_t | CountdownEvent_InitialCount (wCountdownEvent *countdown) |
return the initial event count of the CountdownEvent More... | |
BOOL | CountdownEvent_IsSet (wCountdownEvent *countdown) |
return the current event state of the CountdownEvent More... | |
HANDLE | CountdownEvent_WaitHandle (wCountdownEvent *countdown) |
return the event HANDLE of the CountdownEvent to be used by WaitForSingleObject or WaitForMultipleObjects More... | |
void | CountdownEvent_AddCount (wCountdownEvent *countdown, size_t signalCount) |
add signalCount to the current event count of the CountdownEvent More... | |
BOOL | CountdownEvent_Signal (wCountdownEvent *countdown, size_t signalCount) |
Increase the current event signal state of the CountdownEvent. More... | |
void | CountdownEvent_Reset (wCountdownEvent *countdown, size_t count) |
reset the CountdownEvent More... | |
wCountdownEvent * | CountdownEvent_New (size_t initialCount) |
Allocte a CountdownEvent with initialCount. More... | |
void | CountdownEvent_Free (wCountdownEvent *countdown) |
Free a CountdownEvent. More... | |
void CountdownEvent_AddCount | ( | wCountdownEvent * | countdown, |
size_t | signalCount | ||
) |
add signalCount to the current event count of the CountdownEvent
Methods Increments the CountdownEvent's current count by a specified value.
size_t CountdownEvent_CurrentCount | ( | wCountdownEvent * | countdown | ) |
return the current event count of the CountdownEvent
C equivalent of the C# CountdownEvent Class http://msdn.microsoft.com/en-us/library/dd235708/ Properties Gets the number of remaining signals required to set the event.
void CountdownEvent_Free | ( | wCountdownEvent * | countdown | ) |
Free a CountdownEvent.
countdown | A pointer to a CountdownEvent, may be NULL |
size_t CountdownEvent_InitialCount | ( | wCountdownEvent * | countdown | ) |
return the initial event count of the CountdownEvent
Gets the numbers of signals initially required to set the event.
BOOL CountdownEvent_IsSet | ( | wCountdownEvent * | countdown | ) |
return the current event state of the CountdownEvent
Determines whether the event is set.
wCountdownEvent* CountdownEvent_New | ( | size_t | initialCount | ) |
Allocte a CountdownEvent with initialCount.
Construction, Destruction
void CountdownEvent_Reset | ( | wCountdownEvent * | countdown, |
size_t | count | ||
) |
reset the CountdownEvent
Resets the InitialCount property to a specified value.
BOOL CountdownEvent_Signal | ( | wCountdownEvent * | countdown, |
size_t | signalCount | ||
) |
Increase the current event signal state of the CountdownEvent.
Registers multiple signals with the CountdownEvent, decrementing the value of CurrentCount by the specified amount.
HANDLE CountdownEvent_WaitHandle | ( | wCountdownEvent * | countdown | ) |
return the event HANDLE of the CountdownEvent to be used by WaitForSingleObject or WaitForMultipleObjects
Gets a WaitHandle that is used to wait for the event to be set.