26 #if defined _SYSTEM_LXRT_ 27 # include "SemaphoreImplLxrt.h" 30 #if defined _SYSTEM_DARWIN_ 31 # include "SemaphoreImplDarwin.h" 32 #elif defined _SYSTEM_POSIX_ 33 # include "SemaphoreImplPosix.h" 34 #elif defined _SYSTEM_WIN32_ 35 # include "SemaphoreImplWin32.h" 37 # error "No semaphore implementation defined for this platform." 46 #if defined _SYSTEM_LXRT_ 55 m_impl =
new SemaphoreImplLxrt(initial_value);
62 #elif defined _SYSTEM_DARWIN_ 65 #elif defined _SYSTEM_POSIX_ 68 #elif defined _SYSTEM_WIN32_ 106 #ifdef _IC_BUILDER_DEPRECATED_STYLE_ 111 void Semaphore::Post()
119 bool Semaphore::TryWait()
127 bool Semaphore::Wait()
137 return wait(timeout);
145 return wait(timeout);
Represents absolute times.
const TimeSpan timeout(1, 0)
Repesents absolute times.
Contains icl_core::thread::Semaphore.
Semaphore(size_t initial_value)