Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

Teddy::MixIn::Mutex Class Reference

Mutex object mix in. More...

#include <Mutex.h>

Inheritance diagram for Teddy::MixIn::Mutex:

Inheritance graph
[legend]
List of all members.

Public Methods

 Mutex ()
 Constructor. More...

virtual ~Mutex ()
 Destructor. More...

virtual void lock ()
 Lock this object. Will block if already locked. More...

virtual void unlock ()
 Unlock this object. If others had locked, release next in queue. More...


Protected Attributes

SDL_mutex * sdl_mutex

Detailed Description

Mutex object mix in.

Definition at line 37 of file Mutex.h.


Constructor & Destructor Documentation

Teddy::MixIn::Mutex::Mutex  
 

Constructor.

Definition at line 33 of file Mutex.cpp.

References sdl_mutex.

Teddy::MixIn::Mutex::~Mutex   [virtual]
 

Destructor.

Definition at line 39 of file Mutex.cpp.

References sdl_mutex.


Member Function Documentation

void Teddy::MixIn::Mutex::lock   [virtual]
 

Lock this object. Will block if already locked.

Definition at line 45 of file Mutex.cpp.

References sdl_mutex.

Referenced by Teddy::Application::BaseSimulationTimer::add, Teddy::Scenes::Camera::projectScene, Teddy::Application::BaseSimulationTimer::remove, and Teddy::Application::BaseSimulationTimer::tick.

void Teddy::MixIn::Mutex::unlock   [virtual]
 

Unlock this object. If others had locked, release next in queue.

Definition at line 51 of file Mutex.cpp.

References sdl_mutex.

Referenced by Teddy::Application::BaseSimulationTimer::add, Teddy::Scenes::Camera::projectScene, Teddy::Application::BaseSimulationTimer::remove, and Teddy::Application::BaseSimulationTimer::tick.


Member Data Documentation

SDL_mutex* Teddy::MixIn::Mutex::sdl_mutex [protected]
 

Definition at line 46 of file Mutex.h.

Referenced by lock, Mutex, unlock, and ~Mutex.


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