Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::interprocess::ipcdetail::winapi_semaphore_wrapper Class Reference

#include <winapi_semaphore_wrapper.hpp>

Inheritance diagram for boost::interprocess::ipcdetail::winapi_semaphore_wrapper:
Collaboration diagram for boost::interprocess::ipcdetail::winapi_semaphore_wrapper:

Public Member Functions

 winapi_semaphore_wrapper (void *hnd=winapi::invalid_handle_value)
 
 ~winapi_semaphore_wrapper ()
 
void * release ()
 
void * handle () const
 
bool open_or_create (const char *name, long sem_count, long max_count, const permissions &perm, bool &created)
 
bool open_semaphore (const char *name)
 
void close ()
 
void swap (winapi_semaphore_wrapper &other)
 
void post (long count=1)
 
void wait ()
 
bool try_wait ()
 
bool timed_wait (const boost::posix_time::ptime &abs_time)
 
long value () const
 
long limit () const
 

Static Public Attributes

static const long MaxCount = long(0x7FFFFFFF)
 

Protected Attributes

void * m_sem_hnd
 

Constructor & Destructor Documentation

boost::interprocess::ipcdetail::winapi_semaphore_wrapper::winapi_semaphore_wrapper ( void *  hnd = winapi::invalid_handle_value)
inline
boost::interprocess::ipcdetail::winapi_semaphore_wrapper::~winapi_semaphore_wrapper ( )
inline

References close().

Member Function Documentation

void boost::interprocess::ipcdetail::winapi_semaphore_wrapper::close ( )
inline
void* boost::interprocess::ipcdetail::winapi_semaphore_wrapper::handle ( ) const
inline
long boost::interprocess::ipcdetail::winapi_semaphore_functions::limit ( ) const
inlineinherited
bool boost::interprocess::ipcdetail::winapi_semaphore_wrapper::open_or_create ( const char *  name,
long  sem_count,
long  max_count,
const permissions perm,
bool &  created 
)
inline
bool boost::interprocess::ipcdetail::winapi_semaphore_wrapper::open_semaphore ( const char *  name)
inline
void* boost::interprocess::ipcdetail::winapi_semaphore_wrapper::release ( )
inline
void boost::interprocess::ipcdetail::winapi_semaphore_wrapper::swap ( winapi_semaphore_wrapper other)
inline
long boost::interprocess::ipcdetail::winapi_semaphore_functions::value ( ) const
inlineinherited

Member Data Documentation

const long boost::interprocess::ipcdetail::winapi_semaphore_wrapper::MaxCount = long(0x7FFFFFFF)
static

The documentation for this class was generated from the following file: