Struct
GLibThreadFunctions
Description
struct GThreadFunctions {
GMutex* (* mutex_new) (
void
);
void (* mutex_lock) (
GMutex* mutex
);
gboolean (* mutex_trylock) (
GMutex* mutex
);
void (* mutex_unlock) (
GMutex* mutex
);
void (* mutex_free) (
GMutex* mutex
);
GCond* (* cond_new) (
void
);
void (* cond_signal) (
GCond* cond
);
void (* cond_broadcast) (
GCond* cond
);
void (* cond_wait) (
GCond* cond,
GMutex* mutex
);
gboolean (* cond_timed_wait) (
GCond* cond,
GMutex* mutex,
GTimeVal* end_time
);
void (* cond_free) (
GCond* cond
);
GPrivate* (* private_new) (
GDestroyNotify destructor
);
gpointer (* private_get) (
GPrivate* private_key
);
void (* private_set) (
GPrivate* private_key,
gpointer data
);
void (* thread_create) (
GThreadFunc func,
gpointer data,
gulong stack_size,
gboolean joinable,
gboolean bound,
GThreadPriority priority,
gpointer thread,
GError** error
);
void (* thread_yield) (
void
);
void (* thread_join) (
gpointer thread
);
void (* thread_exit) (
void
);
void (* thread_set_priority) (
gpointer thread,
GThreadPriority priority
);
void (* thread_self) (
gpointer thread
);
gboolean (* thread_equal) (
gpointer thread1,
gpointer thread2
);
}
This function table is no longer used by g_thread_init()
to initialize the thread system.
Structure members
mutex_newVirtual function pointer for g_mutex_new().
mutex_lockVirtual function pointer for g_mutex_lock().
mutex_trylockVirtual function pointer for g_mutex_trylock().
mutex_unlockVirtual function pointer for g_mutex_unlock().
mutex_freeVirtual function pointer for g_mutex_free().
cond_newVirtual function pointer for g_cond_new().
cond_signalVirtual function pointer for g_cond_signal().
cond_broadcastVirtual function pointer for g_cond_broadcast().
cond_waitVirtual function pointer for g_cond_wait().
cond_timed_waitVirtual function pointer for g_cond_timed_wait().
cond_freeVirtual function pointer for g_cond_free().
private_newVirtual function pointer for g_private_new().
private_getVirtual function pointer for g_private_get().
private_setVirtual function pointer for g_private_set().
thread_createVirtual function pointer for g_thread_create().
thread_yieldVirtual function pointer for g_thread_yield().
thread_joinVirtual function pointer for g_thread_join().
thread_exitVirtual function pointer for g_thread_exit().
thread_set_priorityVirtual function pointer for g_thread_set_priority().
thread_selfVirtual function pointer for g_thread_self().
thread_equalUsed internally by recursive mutex locks and by some assertion checks.