gda.thread_wrapper

Module for [ThreadWrapper] class

Types 4

Methods
GType _getGType() static nothrow
GType _gType() @property nothrow
ThreadWrapper self() nothrowReturns `this`, for use in `with` statements.
ThreadWrapperGidBuilder builder() static nothrowGet builder for [gda.thread_wrapper.ThreadWrapper] Returns: New builder object
glib.types.Quark errorQuark() static nothrow
bool cancel(uint id) nothrowCancels a job not yet executed. This may fail for the following reasons: <itemizedlist> <listitem><para>the job id could not be found, either because it has already been treated or because it does ...
gulong connectRaw(void * instance, string sigName, bool privateThread, bool privateJob, gda.types.ThreadWrapperCallback callback) nothrowConnects a callback function to a signal for a particular object. The difference with g_signal_connect() and similar functions are: <itemizedlist> <listitem><para>the callback argument is not a #GC...
void disconnect(gulong id) nothrowDisconnects the emission of a signal, does the opposite of [gda.thread_wrapper.ThreadWrapper.connectRaw].
void * fetchResult(bool mayLock, uint expId)Use this method to check if the execution of a function is finished. The function's execution must have been requested using [gda.thread_wrapper.ThreadWrapper.execute].
glib.iochannel.IOChannel getIoChannel() nothrowAllow wrapper to notify when an execution job is finished, by making its exec ID readable through a new #GIOChannel. This function is useful when the notification needs to be included into a main l...
int getWaitingSize() nothrowUse this method to query the number of functions which have been queued to be executed but which have not yet been executed. Returns: the number of jobs not yet executed
void iterate(bool mayBlock) nothrowThis method gives wrapper a chance to check if some functions to be executed have finished <emphasis>for the calling thread</emphasis>. In this case it handles the execution result and makes it rea...
void stealSignal(gulong id) nothrowRequests that the signal which ID is id (which has been obtained using [gda.thread_wrapper.ThreadWrapper.connectRaw]) be treated by the calling thread instead of by the thread in which [gda.thread_...
void unsetIoChannel() nothrowDoes the opposite of [gda.thread_wrapper.ThreadWrapper.getIoChannel]
Constructors
this(void * ptr, Flag!"Take" take)
this()Creates a new #GdaThreadWrapper object Returns: a new #GdaThreadWrapper object, or null if threads are not supported/enabled
Methods
ThreadWrapper build() nothrowCreate object from builder. Returns: New object
Constructors
this(GError * err)
this(Code code, string msg)