Public Member Functions

booster::fork_shared_mutex Class Reference

The mutex that can be used by the processes that had forked. More...

#include <booster/booster/thread.h>

Inheritance diagram for booster::fork_shared_mutex:
booster::noncopyable

List of all members.

Public Member Functions

 fork_shared_mutex ()
bool try_lock ()
bool try_unique_lock ()
bool try_shared_lock ()
void lock ()
void unique_lock ()
void shared_lock ()
void unlock ()

Detailed Description

The mutex that can be used by the processes that had forked.

Note:
the lock is automatically released when process dies

Constructor & Destructor Documentation

booster::fork_shared_mutex::fork_shared_mutex (  ) 

Create a new mutex - should be done before calling to fork()


Member Function Documentation

void booster::fork_shared_mutex::lock (  )  [inline]

Acquire a unique lock on the mutex

void booster::fork_shared_mutex::shared_lock (  ) 

Acquire a shared lock on the mutex

bool booster::fork_shared_mutex::try_lock (  )  [inline]

Try to acquire a unique lock on the mutex

bool booster::fork_shared_mutex::try_shared_lock (  ) 

Try to acquire a shared lock on the mutex

bool booster::fork_shared_mutex::try_unique_lock (  ) 

Try to acquire a unique lock on the mutex

void booster::fork_shared_mutex::unique_lock (  ) 

Acquire a unique lock on the mutex

void booster::fork_shared_mutex::unlock (  ) 

Release the mutex


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