FreeRDP
CountdownEvent.c File Reference
#include <winpr/crt.h>
#include <winpr/collections.h>

Functions

DWORD CountdownEvent_CurrentCount (wCountdownEvent *countdown)
 
DWORD CountdownEvent_InitialCount (wCountdownEvent *countdown)
 
BOOL CountdownEvent_IsSet (wCountdownEvent *countdown)
 
HANDLE CountdownEvent_WaitHandle (wCountdownEvent *countdown)
 
void CountdownEvent_AddCount (wCountdownEvent *countdown, DWORD signalCount)
 
BOOL CountdownEvent_Signal (wCountdownEvent *countdown, DWORD signalCount)
 
void CountdownEvent_Reset (wCountdownEvent *countdown, DWORD count)
 
wCountdownEvent * CountdownEvent_New (DWORD initialCount)
 
void CountdownEvent_Free (wCountdownEvent *countdown)
 

Function Documentation

void CountdownEvent_AddCount ( wCountdownEvent *  countdown,
DWORD  signalCount 
)

Methods Increments the CountdownEvent's current count by a specified value.

Here is the call graph for this function:

DWORD CountdownEvent_CurrentCount ( wCountdownEvent *  countdown)

WinPR: Windows Portable Runtime Countdown Event

Copyright 2012 Marc-Andre Moreau marca.nosp@m.ndre.nosp@m..more.nosp@m.au@g.nosp@m.mail..nosp@m.com

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. 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)

Here is the call graph for this function:

DWORD CountdownEvent_InitialCount ( wCountdownEvent *  countdown)

Gets the numbers of signals initially required to set the event.

BOOL CountdownEvent_IsSet ( wCountdownEvent *  countdown)

Determines whether the event is set.

Here is the call graph for this function:

wCountdownEvent* CountdownEvent_New ( DWORD  initialCount)

Construction, Destruction

Here is the call graph for this function:

void CountdownEvent_Reset ( wCountdownEvent *  countdown,
DWORD  count 
)

Resets the InitialCount property to a specified value.

BOOL CountdownEvent_Signal ( wCountdownEvent *  countdown,
DWORD  signalCount 
)

Registers multiple signals with the CountdownEvent, decrementing the value of CurrentCount by the specified amount.

Here is the call graph for this function:

HANDLE CountdownEvent_WaitHandle ( wCountdownEvent *  countdown)

Gets a WaitHandle that is used to wait for the event to be set.