G_BEGIN_DECLS IMPORT_C GQuark | g_thread_error_quark | ( | void | ) |
Enumerator | Value | Description |
---|---|---|
G_THREAD_ERROR_AGAIN |
typedef gpointer(* | GThreadFunc |
Enumerator | Value | Description |
---|---|---|
G_THREAD_PRIORITY_LOW | ||
G_THREAD_PRIORITY_NORMAL | ||
G_THREAD_PRIORITY_HIGH | ||
G_THREAD_PRIORITY_URGENT |
typedef struct _GThread | GThread |
typedef struct _GMutex | GMutex |
typedef struct _GCond | GCond |
typedef struct _GPrivate | GPrivate |
typedef struct _GStaticPrivate | GStaticPrivate |
typedef struct _GThreadFunctions | GThreadFunctions |
IMPORT_C GThreadFunctions * | _g_thread_functions_for_glib_use | ( | void | ) |
GLIB_VAR GThreadFunctions | g_thread_functions_for_glib_use |
IMPORT_C gboolean * | _g_thread_use_default_impl | ( | void | ) |
GLIB_VAR gboolean | g_thread_use_default_impl |
GLIB_VAR guint64(* | g_thread_gettime |
typedef guint64(* | gettimetype |
IMPORT_C gboolean * | _g_threads_got_initialized | ( | void | ) |
IMPORT_C gettimetype * | _g_thread_gettime | ( | void | ) |
GLIB_VAR gboolean | g_threads_got_initialized |
IMPORT_C void | g_thread_init | ( | GThreadFunctions * | vtable | ) |
IMPORT_C gboolean | g_thread_supported | ( | void | ) |
IMPORT_C void | g_thread_init_with_errorcheck_mutexes | ( | GThreadFunctions * | vtable | ) |
IMPORT_C gboolean | g_thread_get_initialized | ( | void | ) |
g_thread_get_initialized
Indicates if g_thread_init() has been called.
Returns: TRUE if threads have been initialized.
Since: 2.20
IMPORT_C GThread * | g_thread_create_full | ( | GThreadFunc | func, |
gpointer | data, | |||
gulong | stack_size, | |||
gboolean | joinable, | |||
gboolean | bound, | |||
GThreadPriority | priority, | |||
GError ** | error | |||
) |
IMPORT_C GThread * | g_thread_self | ( | void | ) |
IMPORT_C void | g_thread_exit | ( | gpointer | retval | ) |
IMPORT_C void | g_thread_set_priority | ( | GThread * | thread, |
GThreadPriority | priority | |||
) |
IMPORT_C void | g_static_mutex_init | ( | GStaticMutex * | mutex | ) |
IMPORT_C void | g_static_mutex_free | ( | GStaticMutex * | mutex | ) |
IMPORT_C void | g_static_private_init | ( | GStaticPrivate * | private_key | ) |
IMPORT_C gpointer | g_static_private_get | ( | GStaticPrivate * | private_key | ) |
IMPORT_C void | g_static_private_set | ( | GStaticPrivate * | private_key, |
gpointer | data, | |||
GDestroyNotify | notify | |||
) |
IMPORT_C void | g_static_private_free | ( | GStaticPrivate * | private_key | ) |
typedef struct _GStaticRecMutex | GStaticRecMutex |
IMPORT_C void | g_static_rec_mutex_init | ( | GStaticRecMutex * | mutex | ) |
IMPORT_C void | g_static_rec_mutex_lock | ( | GStaticRecMutex * | mutex | ) |
IMPORT_C gboolean | g_static_rec_mutex_trylock | ( | GStaticRecMutex * | mutex | ) |
IMPORT_C void | g_static_rec_mutex_unlock | ( | GStaticRecMutex * | mutex | ) |
IMPORT_C void | g_static_rec_mutex_lock_full | ( | GStaticRecMutex * | mutex, |
guint | depth | |||
) |
IMPORT_C guint | g_static_rec_mutex_unlock_full | ( | GStaticRecMutex * | mutex | ) |
IMPORT_C void | g_static_rec_mutex_free | ( | GStaticRecMutex * | mutex | ) |
typedef struct _GStaticRWLock | GStaticRWLock |
IMPORT_C void | g_static_rw_lock_init | ( | GStaticRWLock * | lock | ) |
IMPORT_C void | g_static_rw_lock_reader_lock | ( | GStaticRWLock * | lock | ) |
IMPORT_C gboolean | g_static_rw_lock_reader_trylock | ( | GStaticRWLock * | lock | ) |
IMPORT_C void | g_static_rw_lock_reader_unlock | ( | GStaticRWLock * | lock | ) |
IMPORT_C void | g_static_rw_lock_writer_lock | ( | GStaticRWLock * | lock | ) |
IMPORT_C gboolean | g_static_rw_lock_writer_trylock | ( | GStaticRWLock * | lock | ) |
IMPORT_C void | g_static_rw_lock_writer_unlock | ( | GStaticRWLock * | lock | ) |
IMPORT_C void | g_static_rw_lock_free | ( | GStaticRWLock * | lock | ) |
g_thread_foreach : function to call for all GThread structures : second argument to
Call on all existing GThread structures. Note that threads may decide to exit while is running, so without intimate knowledge about the lifetime of foreign threads, shouldn't access the GThread* pointer passed in as first argument. However, will not be called for threads which are known to have exited already.
Due to thread lifetime checks, this function has an execution complexity which is quadratic in the number of existing threads.
Since: 2.10
Enumerator | Value | Description |
---|---|---|
G_ONCE_STATUS_NOTCALLED | ||
G_ONCE_STATUS_PROGRESS | ||
G_ONCE_STATUS_READY |
typedef struct _GOnce | GOnce |
IMPORT_C gpointer | g_once_impl | ( | GOnce * | once, |
GThreadFunc | func, | |||
gpointer | arg | |||
) |