Initial community commit
This commit is contained in:
parent
537bcbc862
commit
fc06254474
16440 changed files with 4239995 additions and 2 deletions
28
Src/replicant/nx/win/nxcondition.h
Normal file
28
Src/replicant/nx/win/nxcondition.h
Normal file
|
@ -0,0 +1,28 @@
|
|||
#pragma once
|
||||
#include "nx/nxapi.h"
|
||||
#ifndef WIN32_LEAN_AND_MEAN
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#endif
|
||||
#include <windows.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef struct nx_condition_struct_t
|
||||
{
|
||||
CONDITION_VARIABLE condition;
|
||||
CRITICAL_SECTION mutex;
|
||||
} nx_condition_value_t, *nx_condition_t;
|
||||
|
||||
NX_API int NXConditionInitialize(nx_condition_t condition);
|
||||
NX_API int NXConditionDestroy(nx_condition_t condition);
|
||||
NX_API int NXConditionLock(nx_condition_t condition);
|
||||
NX_API int NXConditionUnlock(nx_condition_t condition);
|
||||
NX_API int NXConditionWait(nx_condition_t condition);
|
||||
NX_API int NXConditionTimedWait(nx_condition_t condition, unsigned int milliseconds);
|
||||
NX_API int NXConditionSignal(nx_condition_t condition);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue