Mutex.h File Reference

#include <SFML/Config.h>

Go to the source code of this file.


Typedefs

typedef sfMutex sfMutex
 sfMutex defines a mutex (MUTual EXclusion) object, that allows a thread to lock critical instructions to avoid simultaneous access with other threads.

Functions

CSFML_API sfMutexsfMutex_Create ()
 Create a new mutex.
CSFML_API void sfMutex_Destroy (sfMutex *Mutex)
 Destroy an existing mutex.
CSFML_API void sfMutex_Lock (sfMutex *Mutex)
 Lock a mutex.
CSFML_API void sfMutex_Unlock (sfMutex *Mutex)
 Unlock a mutex.

Typedef Documentation

typedef struct sfMutex sfMutex

sfMutex defines a mutex (MUTual EXclusion) object, that allows a thread to lock critical instructions to avoid simultaneous access with other threads.

Definition at line 39 of file Mutex.h.


Function Documentation

CSFML_API sfMutex* sfMutex_Create (  ) 

Create a new mutex.

Returns:
A new sfMutex object

CSFML_API void sfMutex_Destroy ( sfMutex Mutex  ) 

Destroy an existing mutex.

Parameters:
Mutex : Mutex to delete

CSFML_API void sfMutex_Lock ( sfMutex Mutex  ) 

Lock a mutex.

Parameters:
Mutex : Mutex to lock

CSFML_API void sfMutex_Unlock ( sfMutex Mutex  ) 

Unlock a mutex.

Parameters:
Mutex : Mutex to unlock