Home | All Classes | Grouped Classes | Index | Search

Class CL_MutexSection

Lock a mutex until the end of a scope. More...

Derived from: none
Derived by: none
Group: Core (System)

#include <ClanLib/core.h>

Construction:

CL_MutexSection

Mutex Section constructor.

Operations:

enter

Lock mutex.

leave

Unlock mutex.

Detailed description:

This class is a way to ensure a mutex will be released at the end of a scope. When an instance is constructed, it will lock the mutex, and when the instance is destroyed (at the exit of its scope), it will unlock the mutex.



Questions or comments, write to the
ClanLib mailing list.