glibmm 2.31.0
Classes | Enumerations | Functions
Threads

Thread abstraction; including threads, different mutexes, conditions and thread private data. More...

Classes

class  Glib::ThreadError
 Exception class for thread-related errors. More...
class  Glib::Thread
 Represents a running thread. More...
class  Glib::Thread::Exit
 Exception class used to exit from a thread. More...
struct  Glib::StaticMutex
 Like Glib::Mutex, but can be defined at compile time. More...
class  Glib::Mutex
 Represents a mutex (mutual exclusion). More...
class  Glib::Mutex::Lock
 Utility class for exception-safe mutex locking. More...
struct  Glib::StaticRecMutex
 Like Glib::RecMutex, but can be defined at compile time. More...
class  Glib::RecMutex
struct  Glib::StaticRWLock
 Like Glib::RWLock, but can be defined at compile time. More...
class  Glib::RWLock
class  Glib::RWLock::ReaderLock
 Utility class for exception-safe locking of read/write locks. More...
class  Glib::RWLock::WriterLock
 Utility class for exception-safe locking of read/write locks. More...
class  Glib::Cond
 An opaque data structure to represent a condition. More...
struct  Glib::StaticPrivate< T >
class  Glib::Private< T >
class  Glib::Dispatcher
 Signal class for inter-thread communication. More...

Enumerations

enum  Glib::NotLock { Glib::NOT_LOCK }
enum  Glib::TryLock { Glib::TRY_LOCK }

Functions

void Glib::thread_init (GThreadFunctions* vtable=0)
 Initializes the GLib thread system.
bool Glib::thread_supported ()
 Returns whether the thread system is initialized.
Thread* Glib::Thread::wrap (GThread* gobject)

Detailed Description

Thread abstraction; including threads, different mutexes, conditions and thread private data.


Enumeration Type Documentation

Enumerator:
NOT_LOCK 
Enumerator:
TRY_LOCK 

Function Documentation

void Glib::thread_init ( GThreadFunctions *  vtable = 0)

Initializes the GLib thread system.

Deprecated:
Calling thread_init() is no longer necessary and no longer has any effect.
Examples:
thread/dispatcher.cc, and thread/thread.cc.
bool Glib::thread_supported ( )

Returns whether the thread system is initialized.

Returns:
true, if the thread system is initialized.
Deprecated:
This is no longer useful, because the thread system is always initialized.
Thread * wrap ( GThread *  gobject) [related]