SemaphoreImplWin32.h
Go to the documentation of this file.
00001 // this is for emacs file handling -*- mode: c++; indent-tabs-mode: nil -*-
00002 //----------------------------------------------------------------------
00012 //----------------------------------------------------------------------
00013 #ifndef ICL_CORE_THREAD_SEMAPHORE_IMPL_WIN32_H_INCLUDED
00014 #define ICL_CORE_THREAD_SEMAPHORE_IMPL_WIN32_H_INCLUDED
00015 
00016 #include "icl_core/BaseTypes.h"
00017 #include "icl_core_thread/SemaphoreImpl.h"
00018 
00019 namespace icl_core {
00020 namespace thread {
00021 
00022 class SemaphoreImplWin32 : public SemaphoreImpl, protected virtual icl_core::Noncopyable
00023 {
00024 public:
00025   SemaphoreImplWin32(size_t initial_value);
00026   virtual ~SemaphoreImplWin32();
00027 
00028   virtual void post();
00029   virtual bool tryWait();
00030   virtual bool wait();
00031   virtual bool wait(const icl_core::TimeSpan& timeout);
00032   virtual bool wait(const icl_core::TimeStamp& timeout);
00033 
00034 private:
00035   void *m_semaphore;
00036 };
00037 
00038 }
00039 }
00040 
00041 #endif


schunk_svh_driver
Author(s): Georg Heppner
autogenerated on Fri Aug 28 2015 12:59:19