#include <reader_writer_lock.h>
Public Member Functions | |
| scoped_lock (reader_writer_lock &lock) | |
| Construct with blocking attempt to acquire write lock on the passed-in lock. | |
| ~scoped_lock () | |
| Destructor, releases the write lock. | |
| void * | operator new (size_t s) |
| void | operator delete (void *p) |
Friends | |
| class | reader_writer_lock |
Scoped locks help avoid the common problem of forgetting to release the lock. This type is also serves as the node for queuing locks.