]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/boost/interprocess/sync/windows/winapi_semaphore_wrapper.hpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / boost / interprocess / sync / windows / winapi_semaphore_wrapper.hpp
index c98224f15d20b15f19525289ba07dc9c71140641..b8580486af86e9bd9b16cc95251123aa08133eac 100644 (file)
@@ -24,7 +24,6 @@
 #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>
@@ -60,7 +59,8 @@ class winapi_semaphore_functions
    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
@@ -115,7 +115,8 @@ class winapi_semaphore_wrapper
    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