ThreadWrapper
Object Hierarchy:
Gda.ThreadWrapper
Gda.ThreadWrapper
Gda.ThreadWrapper
GLib.Object
GLib.Object
GLib.Object->Gda.ThreadWrapper
Description:
[ CCode ( type_id = "gda_thread_wrapper_get_type ()" ) ]public class ThreadWrapper : Object
Content:
Static methods:
Creation methods:
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 the arg
argument (along with a Error which is not error
) 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 the arg
argument (along with a Error which is not error
) 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 ()
Inherited Members:
All known members inherited from class GLib.Object
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref