Name
GdaThread -- Thread support functions
Description
This module (still in development, DON'T USE IT) provides a convenient way
of adding multithread support to GDA applications. As with some other
libgda-common modules, this is intended to be used internally in other
GDA parts, but it is also made available for GDA application supports.
Using this module will allow you to forget about the actual thread
implementation available on your system.
Details
GDA_TYPE_THREAD
#define GDA_TYPE_THREAD (gda_thread_get_type()) |
IS_GDA_THREAD()
#define IS_GDA_THREAD(obj) |
GdaThreadFunc ()
gpointer (*GdaThreadFunc) (GdaThread *thr,
gpointer user_data); |
gda_thread_get_type ()
GType gda_thread_get_type (void); |
gda_thread_new ()
Create a new GdaThread object. This function just creates the internal
structures and initializes all the data, but does not start the thread.
To do so, you must use gda_thread_start.
gda_thread_free ()
void gda_thread_free (GdaThread *thr); |
gda_thread_start ()
void gda_thread_start (GdaThread *thr,
gpointer user_data); |
gda_thread_stop ()
void gda_thread_stop (GdaThread *thr); |
gda_thread_is_running ()
gboolean gda_thread_is_running (GdaThread *thr); |
Checks whether the given thread object is running or not