#include <Mutex.h>
Inheritance diagram for Teddy::MixIn::Mutex:
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 |
Definition at line 37 of file Mutex.h.
|
Constructor.
Definition at line 33 of file Mutex.cpp. References sdl_mutex. |
|
Destructor.
Definition at line 39 of file Mutex.cpp. References sdl_mutex. |
|
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. |
|
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. |
|
|