1 // =================================
 2 // Copyright (c) 2021 Seppo Laakko
 3 // Distributed under the MIT license
 4 // =================================
 5 
 6 #ifndef CMAJOR_RT_CONDITION_VARIABLE_INCLUDED
 7 #define CMAJOR_RT_CONDITION_VARIABLE_INCLUDED
 8 #include <cmajor/rt/RtApi.hpp>
 9 #include <stdint.h>
10 
11 extern "C" void* RtAllocateConditionVariable();
12 extern "C" void RtFreeConditionVariable(void* nativeHandle);
13 extern "C" int32_t RtNotifyOne(void* nativeHandle);
14 extern "C" int32_t RtNotifyAll(void* nativeHandle);
15 extern "C" int32_t RtWaitConditionVariable(void* nativeHandle, void* recursiveMutexHandle);
16 extern "C" int32_t RtWaitConditionVariableDuration(void* nativeHandle, void* recursiveMutexHandle, int64_t nanoseconds);
17 
18 #endif // CMAJOR_RT_CONDITION_VARIABLE_INCLUDED