gdk.Threads

Undocumented in source.

Public Imports

gdk.c.types
public import gdk.c.types;
Undocumented in source.
gtkc.gdktypes
public import gtkc.gdktypes;
Undocumented in source.

Members

Functions

threadsAddIdle
uint threadsAddIdle(GSourceFunc funct, void* data)

A wrapper for the common usage of gdk_threads_add_idle_full() assigning the default priority, #G_PRIORITY_DEFAULT_IDLE.

threadsAddIdleFull
uint threadsAddIdleFull(int priority, GSourceFunc funct, void* data, GDestroyNotify notify)

Adds a function to be called whenever there are no higher priority events pending. If the function returns %FALSE it is automatically removed from the list of event sources and will not be called again.

threadsAddTimeout
uint threadsAddTimeout(uint interval, GSourceFunc funct, void* data)

A wrapper for the common usage of gdk_threads_add_timeout_full() assigning the default priority, #G_PRIORITY_DEFAULT.

threadsAddTimeoutFull
uint threadsAddTimeoutFull(int priority, uint interval, GSourceFunc funct, void* data, GDestroyNotify notify)

Sets a function to be called at regular intervals holding the GDK lock, with the given priority. The function is called repeatedly until it returns %FALSE, at which point the timeout is automatically destroyed and the function will not be called again. The @notify function is called when the timeout is destroyed. The first call to the function will be at the end of the first @interval.

threadsAddTimeoutSeconds
uint threadsAddTimeoutSeconds(uint interval, GSourceFunc funct, void* data)

A wrapper for the common usage of gdk_threads_add_timeout_seconds_full() assigning the default priority, #G_PRIORITY_DEFAULT.

threadsAddTimeoutSecondsFull
uint threadsAddTimeoutSecondsFull(int priority, uint interval, GSourceFunc funct, void* data, GDestroyNotify notify)

A variant of gdk_threads_add_timeout_full() with second-granularity. See g_timeout_add_seconds_full() for a discussion of why it is a good idea to use this function if you don’t need finer granularity.

threadsEnter
void threadsEnter()

This function marks the beginning of a critical section in which GDK and GTK+ functions can be called safely and without causing race conditions. Only one thread at a time can be in such a critial section.

threadsInit
void threadsInit()

Initializes GDK so that it can be used from multiple threads in conjunction with gdk_threads_enter() and gdk_threads_leave().

threadsLeave
void threadsLeave()

Leaves a critical region begun with gdk_threads_enter().

threadsSetLockFunctions
void threadsSetLockFunctions(GCallback enterFn, GCallback leaveFn)

Allows the application to replace the standard method that GDK uses to protect its data structures. Normally, GDK creates a single #GMutex that is locked by gdk_threads_enter(), and released by gdk_threads_leave(); using this function an application provides, instead, a function @enter_fn that is called by gdk_threads_enter() and a function @leave_fn that is called by gdk_threads_leave().

Meta