#include <boost/interprocess/creation_tags.hpp>
#include <boost/interprocess/permissions.hpp>
#include <boost/interprocess/detail/win32_api.hpp>
-#include <boost/interprocess/detail/posix_time_types_wrk.hpp>
#include <boost/interprocess/sync/windows/winapi_wrapper_common.hpp>
#include <boost/interprocess/errors.hpp>
#include <boost/interprocess/exceptions.hpp>
bool try_wait()
{ return winapi_wrapper_try_wait_for_single_object(m_sem_hnd); }
- bool timed_wait(const boost::posix_time::ptime &abs_time)
+ template<class TimePoint>
+ bool timed_wait(const TimePoint &abs_time)
{ return winapi_wrapper_timed_wait_for_single_object(m_sem_hnd, abs_time); }
long value() const
void *handle() const
{ return m_sem_hnd; }
- bool open_or_create( const char *name
+ template <class CharT>
+ bool open_or_create( const CharT *name
, long sem_count
, long max_count
, const permissions &perm