xoreos  0.0.5
Public Member Functions | Private Attributes | Friends | List of all members
Common::Mutex Class Reference

A mutex. More...

#include <mutex.h>

Inheritance diagram for Common::Mutex:
Inheritance graph
Collaboration diagram for Common::Mutex:
Collaboration graph

Public Member Functions

 Mutex ()
 ~Mutex ()
void lock ()
void unlock ()

Private Attributes

SDL_mutex * _mutex


class Condition

Detailed Description

A mutex.

Definition at line 40 of file mutex.h.

Constructor & Destructor Documentation

◆ Mutex()

Common::Mutex::Mutex ( )

Definition at line 31 of file mutex.cpp.

References _mutex.

◆ ~Mutex()

Common::Mutex::~Mutex ( )

Definition at line 37 of file mutex.cpp.

References _mutex.

Member Function Documentation

◆ lock()

void Common::Mutex::lock ( )

◆ unlock()

void Common::Mutex::unlock ( )

Friends And Related Function Documentation

◆ Condition

friend class Condition

Definition at line 51 of file mutex.h.

Member Data Documentation

◆ _mutex

SDL_mutex* Common::Mutex::_mutex

Definition at line 49 of file mutex.h.

Referenced by lock(), Mutex(), unlock(), Common::Condition::wait(), and ~Mutex().

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