Xfce Foundation Classes
Main Page | Index | Namespace List | Alphabetical List | Class List | File List

# mutex.hh File Reference

A GMutex, GStaticMutex, GStaticRecMutex and GStaticRWLock C++ wrapper interface. More...

`#include <xfc/object.hh>`
`#include <glib/gthread.h>`
`#include <xfc/glib/inline/mutex.inl>`

## Namespaces

- namespace Xfc
- namespace Xfc::G

## Classes

- class Xfc::G::Mutex
    A GMutex C++ wrapper interface. More...
- struct Xfc::G::StaticMutex
    A GStaticMutex C++ wrapper interface. More...
- struct Xfc::G::StaticRecMutex
    A compile-time GStaticRecMutex C++ wrapper interface. More...
- class Xfc::G::RecMutex
    A run-time GStaticRecMutex C++ wrapper interface. More...
- struct Xfc::G::StaticRWLock
    A compile-time GStaticRWlock C++ wrapper interface. More...
- class Xfc::G::RWLock
    A run-time GStaticRWlock C++ wrapper interface. More...

## Defines

- #define XFC_STATIC_RW_LOCK_INIT { G_STATIC_RW_LOCK_INIT }
    Macro that initializes a StaticRWLock.
- #define XFC_STATIC_MUTEX_INIT { G_STATIC_MUTEX_INIT }
    Macro that initializes a StaticMutex.
- #define XFC_STATIC_REC_MUTEX_INIT { G_STATIC_REC_MUTEX_INIT }
    Macro that initializes a StaticRecMutex.
- #define XFC_STATIC_RW_LOCK_INIT { G_STATIC_RW_LOCK_INIT }
    Macro that initializes a StaticRWLock.

## Detailed Description

A GMutex, GStaticMutex, GStaticRecMutex and GStaticRWLock C++ wrapper interface.

Provides Mutex, a mutual exclusion object that can be used to protect access to portions of memory.

## Define Documentation

#define XFC_STATIC_MUTEX_INIT { G_STATIC_MUTEX_INIT }

| Macro that initializes a StaticMutex. A StaticMutex must be initialized with this macro, before it can be used. This macro can used be to initialize a variable, but it cannot be assigned to a variable. If you want to allocate a run-time mutex use G::Mutex instead.

#define XFC_STATIC_REC_MUTEX_INIT { G_STATIC_REC_MUTEX_INIT }

| Macro that initializes a StaticRecMutex. A StaticRecMutex must be initialized with this macro, before it can be used. This macro can used be to initialize a variable, but it cannot be assigned to a variable. If you want to allocate a run-time mutex use G::RecMutex instead.

#define XFC_STATIC_RW_LOCK_INIT { G_STATIC_RW_LOCK_INIT }

| Macro that initializes a StaticRWLock. A StaticRWLock must be initialized with this macro, before it can be used. This macro can used be to initialize a variable, but it cannot be assigned to a variable. If you want to allocate a run-time mutex use G::RWLock instead.

#define XFC_STATIC_RW_LOCK_INIT { G_STATIC_RW_LOCK_INIT }

| Macro that initializes a StaticRWLock. A StaticRWLock must be initialized with this macro, before it can be used. This macro can used be to initialize a variable, but it cannot be assigned to a variable. If you want to allocate a run-time mutex use G::RWLock instead.

Xfce Foundation Classes

Copyright © 2004-2005 The XFC Development Team | XFC 4.3