gda.thread_wrapper
Module for [ThreadWrapper] class
Types 4
Methods
ThreadWrapper self()Returns `this`, for use in `with` statements.ThreadWrapperGidBuilder builder()Get builder for [gda.thread_wrapper.ThreadWrapper] Returns: New builder objectbool cancel(uint id)Cancels 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)Connects a callback function to a signal for a particular object. The difference with gsignalconnect() and similar functions are: <itemizedlist> <listitem><para>the callback argument is not a #GCal...void disconnect(gulong id)Disconnects 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()Allow 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()Use 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 executedvoid iterate(bool mayBlock)This 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)Requests that the signal which ID is id (which has been obtained using [gda.threadwrapper.ThreadWrapper.connectRaw]) be treated by the calling thread instead of by the thread in which [gda.threadwr...void unsetIoChannel()Does the opposite of [gda.thread_wrapper.ThreadWrapper.getIoChannel]Fluent builder for [gda.thread_wrapper.ThreadWrapper]
Methods
classThreadWrapperException : ErrorWrap