Thread abstraction; including threads, different mutexes, conditions and thread private data.
More...
|
Thread * | wrap (GThread * gobject) |
| A C++ wrapper for the C object.
|
|
Mutex * | wrap (GMutex * gobject) |
| A C++ wrapper for the C object.
|
|
RecMutex * | wrap (GRecMutex * gobject) |
| A C++ wrapper for the C object.
|
|
Thread abstraction; including threads, different mutexes, conditions and thread private data.
- Deprecated
- The entire Glib::Threads API is deprecated in favor of the standard C++ concurrency API in C++11 and C++14.
◆ NotLock
◆ TryLock
◆ wrap() [1/3]
Mutex * wrap |
( |
GMutex * | gobject | ) |
|
|
related |
A C++ wrapper for the C object.
Do not use operator delete on the returned pointer. If the caller owns the GMutex object, the caller must destroy it in the same way as if this function had not been called.
- Parameters
-
- Returns
- The GMutex* cast to a Glib::Threads::Mutex*.
◆ wrap() [2/3]
A C++ wrapper for the C object.
Do not use operator delete on the returned pointer. If the caller owns the GRecMutex object, the caller must destroy it in the same way as if this function had not been called.
- Parameters
-
- Returns
- The GRecMutex* cast to a Glib::Threads::RecMutex*.
◆ wrap() [3/3]
Thread * wrap |
( |
GThread * | gobject | ) |
|
|
related |
A C++ wrapper for the C object.
- Parameters
-
- Returns
- The C++ wrapper.
- Deprecated
- Please use std::thread instead.