#include <graphlab/parallel/mutex.hpp>
List of all members.
Public Member Functions |
| mutex () |
| constructs a mutex
|
| mutex (const mutex &) |
void | operator= (const mutex &m) |
void | lock () const |
| Acquires a lock on the mutex.
|
void | unlock () const |
| Releases a lock on the mutex.
|
bool | try_lock () const |
| Non-blocking attempt to acquire a lock on the mutex.
|
Detailed Description
Simple wrapper around pthread's mutex. Before you use, see parallel_object_intricacies.
Definition at line 39 of file mutex.hpp.
Constructor & Destructor Documentation
graphlab::mutex::mutex |
( |
const mutex & |
| ) |
|
|
inline |
Copy constructor which does not copy. Do not use! Required for compatibility with some STL implementations (LLVM). which use the copy constructor for vector resize, rather than the standard constructor.
Definition at line 53 of file mutex.hpp.
The documentation for this class was generated from the following file: