FreeRDP
TestSynchBarrier.c File Reference
#include <winpr/crt.h>
#include <winpr/synch.h>
#include <winpr/thread.h>
#include <winpr/interlocked.h>
#include <winpr/sysinfo.h>
#include "../synch.h"

Macros

#define MAX_SLEEP_MS   22
 

Functions

static DWORD WINAPI test_synch_barrier_thread (LPVOID lpParam)
 
static BOOL TestSynchBarrierWithFlags (DWORD dwFlags, DWORD dwThreads, DWORD dwLoops)
 
int TestSynchBarrier (int argc, char *argv[])
 

Variables

static SYNCHRONIZATION_BARRIER gBarrier
 
static HANDLE gStartEvent = NULL
 
static LONG gErrorCount = 0
 

Macro Definition Documentation

◆ MAX_SLEEP_MS

#define MAX_SLEEP_MS   22

Function Documentation

◆ test_synch_barrier_thread()

static DWORD WINAPI test_synch_barrier_thread ( LPVOID  lpParam)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ TestSynchBarrier()

int TestSynchBarrier ( int  argc,
char *  argv[] 
)
Here is the call graph for this function:

◆ TestSynchBarrierWithFlags()

static BOOL TestSynchBarrierWithFlags ( DWORD  dwFlags,
DWORD  dwThreads,
DWORD  dwLoops 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ gBarrier

SYNCHRONIZATION_BARRIER gBarrier
static

◆ gErrorCount

LONG gErrorCount = 0
static

◆ gStartEvent

HANDLE gStartEvent = NULL
static