Badminton-Scoreboard/Libraries/libil2cpp/include/os/c-api/ConditionVariable-c-api.h
2023-10-08 10:24:48 +08:00

29 lines
845 B
C

#pragma once
#include <stdint.h>
#include "Mutex-c-api.h"
#if defined(__cplusplus)
#include "os/ConditionVariable.h"
typedef il2cpp::os::ConditionVariable UnityPalConditionVariable;
#else
typedef struct UnityPalConditionVariable UnityPalConditionVariable;
#endif
#if defined(__cplusplus)
extern "C"
{
#endif
UnityPalConditionVariable* UnityPalConditionVariableNew();
void UnityPalConditionVariableDelete(UnityPalConditionVariable* object);
int UnityPalConditionVariableWait(UnityPalConditionVariable* object, UnityPalFastMutex* lock);
int UnityPalConditionVariableTimedWait(UnityPalConditionVariable* object, UnityPalFastMutex* lock, uint32_t timeout_ms);
void UnityPalConditionVariableBroadcast(UnityPalConditionVariable* object);
void UnityPalConditionVariableSignal(UnityPalConditionVariable* object);
#if defined(__cplusplus)
}
#endif