ThreadWrapper
Object Hierarchy:
Description:
Namespace: Gda
Package: libgda-5.0
Content:
Static methods:
- public static Quark error_quark ()
Creation methods:
- public ThreadWrapper ()
Creates a new ThreadWrapper object
Methods:
- public bool cancel (uint id)
Cancels a job not yet executed.
- public ulong connect_raw (void* instance, string sig_name, bool private_thread, bool private_job, ThreadWrapperCallback callback)
Connects a callback function to a signal for a particular object.
- public void disconnect (ulong id)
Disconnects the emission of a signal, does the opposite of connect_raw.
- public uint execute (owned ThreadWrapperFunc func, void* arg) throws Error
Make this execute the
func
function with thearg
argument (along with a Error which is noterror
) in the sub thread managed by this. - public uint execute_void (owned ThreadWrapperVoidFunc func, void* arg) throws Error
Make this execute the
func
function with thearg
argument (along with a Error which is noterror
) in the sub thread managed by this. - public void* fetch_result (bool may_lock, uint exp_id) throws Error
Use this method to check if the execution of a function is finished.
- public unowned IOChannel get_io_channel ()
Allow this to notify when an execution job is finished, by making its exec ID readable through a new IOChannel.
- public int get_waiting_size ()
Use this method to query the number of functions which have been queued to be executed but which have not yet been executed.
- public void iterate (bool may_block)
This method gives this a chance to check if some functions to be executed have finished
for the calling thread
. - public void steal_signal (ulong id)
Requests that the signal which ID is
id
(which has been obtained using connect_raw) be treated by the calling thread instead of by the thread in which connect_raw was called. - public void unset_io_channel ()
Does the opposite of get_io_channel
Inherited Members:
All known members inherited from class GLib.Object