![]() |
![]() |
Classes | |
class | Cond |
An opaque data structure to represent a condition. More... | |
class | Dispatcher |
Signal class for inter-thread communication. More... | |
class | Mutex |
Represents a mutex (mutual exclusion). More... | |
class | Mutex::Lock |
Utility class for exception-safe mutex locking. More... | |
class | Private |
class | RecMutex |
class | RecMutex::Lock |
Utility class for exception-safe locking of recursive mutexes. More... | |
class | RWLock |
class | RWLock::ReaderLock |
Utility class for exception-safe locking of read/write locks. More... | |
class | RWLock::WriterLock |
Utility class for exception-safe locking of read/write locks. More... | |
struct | StaticMutex |
Like Glib::Mutex, but can be defined at compile time. More... | |
struct | StaticPrivate |
struct | StaticRecMutex |
Like Glib::RecMutex, but can be defined at compile time. More... | |
struct | StaticRWLock |
Like Glib::RWLock, but can be defined at compile time. More... | |
class | Thread |
Represents a running thread. More... | |
class | Thread::Exit |
Exception class used to exit from a thread. More... | |
class | ThreadError |
Exception class for thread-related errors. 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) |
|
|
|
|
|
Initializes the GLib thread system. Before you use a thread related function in glibmm, you should initialize the thread system. This is done by calling Glib::thread_init().
if(!Glib::thread_supported()) Glib::thread_init(); G_THREADS_ENABLED is not defined or G_THREADS_IMPL_NONE is defined.
If no thread system is available and vtable is
|
|
Returns whether the thread system is initialized.
|
|
|