Parolin 0.7.9 6796
Console (soon DLLs) to do a tar like job
Loading...
Searching...
No Matches
Threads.c File Reference
#include "Precomp.h"
#include "Threads.h"
#include <errno.h>
#include <stdlib.h>
#include <string.h>

Macros

#define _GNU_SOURCE
 
#define PRF(p)
 
#define Print(s)
 

Functions

WRes Thread_Create_With_CpuSet (CThread *p, THREAD_FUNC_TYPE func, LPVOID param, const CCpuSet *cpuSet)
 
WRes Thread_Create (CThread *p, THREAD_FUNC_TYPE func, LPVOID param)
 
WRes Thread_Create_With_Affinity (CThread *p, THREAD_FUNC_TYPE func, LPVOID param, CAffinityMask affinity)
 
WRes Thread_Close (CThread *p)
 
WRes Thread_Wait_Close (CThread *p)
 
WRes ManualResetEvent_Create (CManualResetEvent *p, int signaled)
 
WRes ManualResetEvent_CreateNotSignaled (CManualResetEvent *p)
 
WRes AutoResetEvent_Create (CAutoResetEvent *p, int signaled)
 
WRes AutoResetEvent_CreateNotSignaled (CAutoResetEvent *p)
 
WRes Event_Set (CEvent *p)
 
WRes Event_Reset (CEvent *p)
 
WRes Event_Wait (CEvent *p)
 
WRes Event_Close (CEvent *p)
 
WRes Semaphore_Create (CSemaphore *p, UInt32 initCount, UInt32 maxCount)
 
WRes Semaphore_OptCreateInit (CSemaphore *p, UInt32 initCount, UInt32 maxCount)
 
WRes Semaphore_ReleaseN (CSemaphore *p, UInt32 releaseCount)
 
WRes Semaphore_Wait (CSemaphore *p)
 
WRes Semaphore_Close (CSemaphore *p)
 
WRes CriticalSection_Init (CCriticalSection *p)
 
void CriticalSection_Enter (CCriticalSection *p)
 
void CriticalSection_Leave (CCriticalSection *p)
 
void CriticalSection_Delete (CCriticalSection *p)
 
LONG InterlockedIncrement (LONG volatile *addend)
 
WRes AutoResetEvent_OptCreate_And_Reset (CAutoResetEvent *p)
 

Macro Definition Documentation

◆ _GNU_SOURCE

#define _GNU_SOURCE

◆ PRF

#define PRF ( p)

◆ Print

#define Print ( s)
Value:
PRF(printf("\n%s\n", s);)
#define PRF(p)
Definition Threads.c:224

Function Documentation

◆ AutoResetEvent_Create()

WRes AutoResetEvent_Create ( CAutoResetEvent * p,
int signaled )

◆ AutoResetEvent_CreateNotSignaled()

WRes AutoResetEvent_CreateNotSignaled ( CAutoResetEvent * p)

◆ AutoResetEvent_OptCreate_And_Reset()

WRes AutoResetEvent_OptCreate_And_Reset ( CAutoResetEvent * p)

◆ CriticalSection_Delete()

void CriticalSection_Delete ( CCriticalSection * p)

◆ CriticalSection_Enter()

void CriticalSection_Enter ( CCriticalSection * p)

◆ CriticalSection_Init()

WRes CriticalSection_Init ( CCriticalSection * p)

◆ CriticalSection_Leave()

void CriticalSection_Leave ( CCriticalSection * p)

◆ Event_Close()

WRes Event_Close ( CEvent * p)

◆ Event_Reset()

WRes Event_Reset ( CEvent * p)

◆ Event_Set()

WRes Event_Set ( CEvent * p)

◆ Event_Wait()

WRes Event_Wait ( CEvent * p)

◆ InterlockedIncrement()

LONG InterlockedIncrement ( LONG volatile * addend)

◆ ManualResetEvent_Create()

WRes ManualResetEvent_Create ( CManualResetEvent * p,
int signaled )

◆ ManualResetEvent_CreateNotSignaled()

WRes ManualResetEvent_CreateNotSignaled ( CManualResetEvent * p)

◆ Semaphore_Close()

WRes Semaphore_Close ( CSemaphore * p)

◆ Semaphore_Create()

WRes Semaphore_Create ( CSemaphore * p,
UInt32 initCount,
UInt32 maxCount )

◆ Semaphore_OptCreateInit()

WRes Semaphore_OptCreateInit ( CSemaphore * p,
UInt32 initCount,
UInt32 maxCount )

◆ Semaphore_ReleaseN()

WRes Semaphore_ReleaseN ( CSemaphore * p,
UInt32 releaseCount )

◆ Semaphore_Wait()

WRes Semaphore_Wait ( CSemaphore * p)

◆ Thread_Close()

WRes Thread_Close ( CThread * p)

◆ Thread_Create()

WRes Thread_Create ( CThread * p,
THREAD_FUNC_TYPE func,
LPVOID param )

◆ Thread_Create_With_Affinity()

WRes Thread_Create_With_Affinity ( CThread * p,
THREAD_FUNC_TYPE func,
LPVOID param,
CAffinityMask affinity )

◆ Thread_Create_With_CpuSet()

WRes Thread_Create_With_CpuSet ( CThread * p,
THREAD_FUNC_TYPE func,
LPVOID param,
const CCpuSet * cpuSet )

◆ Thread_Wait_Close()

WRes Thread_Wait_Close ( CThread * p)