| GNOME Data Access 4.0 manual | ||||
|---|---|---|---|---|
GdaThreader;
void (*GdaThreaderFunc) (GdaThreader *,
guint ,
gpointer );
GObject* gda_threader_new (void);
guint gda_threader_start_thread (GdaThreader *thread,
GThreadFunc func,
gpointer func_arg,
GdaThreaderFunc ok_callback,
GdaThreaderFunc cancel_callback,
GError **error);
void gda_threader_cancel (GdaThreader *thread,
guint job_id);
void (*GdaThreaderFunc) (GdaThreader *, guint , gpointer );
|
|
|
|
|
GObject* gda_threader_new (void);
Creates a new GdaThreader object. This object class is normally not instantiated directly but through child classes objects' intantiation
Returns : |
the newly created object |
guint gda_threader_start_thread (GdaThreader *thread, GThreadFunc func, gpointer func_arg, GdaThreaderFunc ok_callback, GdaThreaderFunc cancel_callback, GError **error);
|
a GdaThreader object |
|
the function to be called in the newly created thread |
|
func's argument
|
|
callback called when func terminates
|
|
callback called when func terminates and the job has been cancelled
|
|
place to store an error when creating the thread or NULL
|
Returns : |
the id of the new job executed in another thread. |
void gda_threader_cancel (GdaThreader *thread, guint job_id);
|
|
|
"cancelled" signalvoid user_function (GdaThreader *gdathreader, guint arg1, gpointer arg2, gpointer user_data) : Run First
|
the object which received the signal. |
|
|
|
|
|
user data set when the signal handler was connected. |
"finished" signalvoid user_function (GdaThreader *gdathreader, guint arg1, gpointer arg2, gpointer user_data) : Run First
|
the object which received the signal. |
|
|
|
|
|
user data set when the signal handler was connected. |