25 #ifndef STTCLBOOSTSEMAPHORE_H_
26 #define STTCLBOOSTSEMAPHORE_H_
28 #if defined(STTCL_BOOST_THREADS) or defined(STTCL_BOOST_IMPL)
29 #include <boost/interprocess/sync/interprocess_semaphore.hpp>
30 #include "../include/SttclTime.h"
42 class SttclBoostSemaphore
45 typedef boost::interprocess::interprocess_semaphore NativeSemaphoreType;
46 SttclBoostSemaphore(
unsigned int initialCount);
47 virtual ~SttclBoostSemaphore();
50 bool try_wait(
const TimeDuration<>& timeout);
54 NativeSemaphoreType semaphore;