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


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)
wCountdownEventCountdownEvent_New (DWORD initialCount)
void CountdownEvent_Free (wCountdownEvent *countdown)

Function Documentation

◆ CountdownEvent_AddCount()

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:

◆ CountdownEvent_CurrentCount()

DWORD CountdownEvent_CurrentCount ( wCountdownEvent countdown)

WinPR: Windows Portable Runtime Countdown Event

Copyright 2012 Marc-Andre Moreau

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

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 Properties Gets the number of remaining signals required to set the event.

◆ CountdownEvent_Free()

void CountdownEvent_Free ( wCountdownEvent countdown)
Here is the call graph for this function:

◆ CountdownEvent_InitialCount()

DWORD CountdownEvent_InitialCount ( wCountdownEvent countdown)

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

◆ CountdownEvent_IsSet()

BOOL CountdownEvent_IsSet ( wCountdownEvent countdown)

Determines whether the event is set.

Here is the call graph for this function:

◆ CountdownEvent_New()

wCountdownEvent* CountdownEvent_New ( DWORD  initialCount)

Construction, Destruction

Here is the call graph for this function:

◆ CountdownEvent_Reset()

void CountdownEvent_Reset ( wCountdownEvent countdown,
DWORD  count 

Resets the InitialCount property to a specified value.

◆ CountdownEvent_Signal()

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:

◆ CountdownEvent_WaitHandle()

HANDLE CountdownEvent_WaitHandle ( wCountdownEvent countdown)

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