csutil/threading/mutex.h File Reference (Crystal Space 2.0 Public API Reference)

| ## Public API Reference

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

Classes | Namespaces | Typedefs
csutil/threading/mutex.h File Reference

Mutual-exclusion object. More...

`#include "csutil/noncopyable.h"`
`#include "csutil/threading/pthread_mutex.h"`

Go to the source code of this file.

## Classes
class | CS::Threading::MutexImpl< BaseMutex >
| General mutex class. More...
class | CS::Threading::OptionalMutex< _Lock >
| Helper that is a (non-recursive) mutex if _Lock is `true` or does nothing if _Lock is `false`. More...
class | CS::Threading::ScopedLock< T >
| This is a utility class for locking a Mutex. More...
## Namespaces
namespace | CS
| Main namespace for CrystalSpace.
namespace | CS::Threading
| Functions and classes for threading, locking and atomic operations.
## Typedefs
typedef MutexImpl < Implementation::MutexBase > | CS::Threading::Mutex
| Basic non-recursive mutex.
typedef MutexImpl < Implementation::RecursiveMutexBase > | CS::Threading::RecursiveMutex
| Basic recursive mutex.

## Detailed Description

Mutual-exclusion object.

A mutual exclusion object ensures that only one thread at a time access a shared object.

Definition in file mutex.h.