LearnWithTouch/App/LearnWithTouch_ios/Libraries/libil2cpp/include/os/c-api/ConditionVariable-c-api.h

31 lines
864 B
C
Raw Normal View History

2019-07-01 14:33:21 +02:00
#pragma once
#include <stdint.h>
#include "Mutex-c-api.h"
#if defined(__cplusplus)
#if NET_4_0
#include "os/ConditionVariable.h"
typedef il2cpp::os::ConditionVariable UnityPalConditionVariable;
#endif
#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