mx::mxMutex Class Reference

#include <mxthread.h>

List of all members.

Public Member Functions

 mxMutex ()
int lockMutex ()
int unlockMutex ()

Protected Attributes

SDL_mutex * m


Detailed Description

encapsulation of SDL_mutex

Definition at line 33 of file mxthread.h.


Constructor & Destructor Documentation

mx::mxMutex::mxMutex (  ) 

constructor

Definition at line 36 of file mxthread.cpp.

00037         {
00038                 m = SDL_CreateMutex();
00039         }


Member Function Documentation

int mx::mxMutex::lockMutex (  ) 

lockMutex locks the mutex

Definition at line 47 of file mxthread.cpp.

00048         {
00049                 return SDL_mutexP(m);
00050         }

int mx::mxMutex::unlockMutex (  ) 

unlockMutex unlocks the mutex

Definition at line 52 of file mxthread.cpp.

00053         {
00054 
00055                 return SDL_mutexV(m);
00056         }


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

Generated on Wed Jun 10 14:52:02 2009 for libmx by  doxygen 1.5.8