LearnWithTouch/App/LearnWithTouch_ios/Libraries/libil2cpp/include/os/Posix/ConditionVariableImpl.h

33 lines
553 B
C
Raw Normal View History

2019-07-01 14:33:21 +02:00
#pragma once
#if NET_4_0
#if IL2CPP_THREADS_PTHREAD
#include <pthread.h>
#include "utils/NonCopyable.h"
class FastMutexImpl;
namespace il2cpp
{
namespace os
{
class ConditionVariableImpl : public il2cpp::utils::NonCopyable
{
public:
ConditionVariableImpl();
~ConditionVariableImpl();
int Wait(FastMutexImpl* lock);
int TimedWait(FastMutexImpl* lock, uint32_t timeout_ms);
void Broadcast();
void Signal();
private:
pthread_cond_t m_ConditionVariable;
};
}
}
#endif
#endif