Reference

CL_MutexSection(3)

Lock a mutex until the end of a scope.

NAME

CL_MutexSection - Lock a mutex until the end of a scope.

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.

CLASS MEMBERS

CL_MutexSection(
CL_Mutex *mutex)

virtual ~CL_MutexSection()

MEMBERS WITH DESCRIPTIONS

CL_MutexSection(
CL_Mutex *mutex)

Description:

virtual ~CL_MutexSection()
Description:

SEE ALSO

All ClanLib API classes can be found in clanlib (3).

AUTHORS

Originally written by Magnus Norddahl <[email protected]> and Martin Starch <[email protected]>. ClanLib is now developed by the ClanLib Development team as an Open Source project.

The ClanLib man pages was created using the Perceps documentation system (another excellent piece of Open Source software, available at http://somewhere.in.the.world.org).

See clanlib (3) to find out how to get a full list of contributors and details on how to submit bug reports, comments etc.