cwidget  0.5.17
Public Member Functions | Friends | List of all members
cwidget::threads::mutex::lock Class Reference

Represents a lock on a mutex. More...

#include <threads.h>

Public Member Functions

 lock (mutex &_parent)
 
void acquire ()
 Lock the associated mutex. More...
 
void release ()
 Unlock the associated mutex. More...
 
bool get_locked () const
 

Friends

class condition
 

Detailed Description

Represents a lock on a mutex.

Can be released and re-asserted as desired; when the lock goes out of scope, it will automatically be released if necessary.

Member Function Documentation

◆ acquire()

void cwidget::threads::mutex::lock::acquire ( )
inline

Lock the associated mutex.

Referenced by cwidget::toplevel::mainloop().

◆ release()

void cwidget::threads::mutex::lock::release ( )
inline

Unlock the associated mutex.

Referenced by cwidget::toplevel::mainloop(), and cwidget::toplevel::post_event().


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