Top |
Functions
|
ags_worker_thread_test_status_flags () |
|
ags_worker_thread_set_status_flags () |
|
ags_worker_thread_unset_status_flags () |
|
ags_woker_thread_do_poll_loop () |
|
ags_worker_thread_do_poll () |
AgsWorkerThread * | ags_worker_thread_new () |
Object Hierarchy
GFlags ╰── AgsWorkerThreadStatusFlagsGObject ╰── AgsThread ╰── AgsWorkerThread ╰── AgsDestroyWorker
Description
The AgsWorkerThread does non-realtime work. You might want
to synchronize to the run signal within your ::do_poll()
Functions
ags_worker_thread_test_status_flags ()
gboolean ags_worker_thread_test_status_flags (AgsWorkerThread *worker_thread
,);
guint status_flags
Test status_flags
of worker_thread
.
Since:
ags_worker_thread_set_status_flags ()
void ags_worker_thread_set_status_flags (AgsWorkerThread *worker_thread
,);
guint status_flags
Set status flags.
Since:
ags_worker_thread_unset_status_flags ()
void ags_worker_thread_unset_status_flags (AgsWorkerThread *worker_thread
,);
guint status_flags
Unset status flags.
Since:
ags_woker_thread_do_poll_loop ()
void * ags_woker_thread_do_poll_loop ();
void *ptr
Do loop and invoke ags_worker_thread_do_poll()
unless flag
AGS_WORKER_THREAD_RUNNING was unset.
Since:
ags_worker_thread_do_poll ()
void ags_worker_thread_do_poll (AgsWorkerThread *worker_thread
);
Do poll your work. It is called of the worker thread.
Since:
ags_worker_thread_new ()
AgsWorkerThread * ags_worker_thread_new ();
Create a new instance of AgsWorkerThread.
Since:
Types and Values
AGS_WORKER_THREAD_DEFAULT_JIFFIE
#define AGS_WORKER_THREAD_DEFAULT_JIFFIE (AGS_THREAD_DEFAULT_MAX_PRECISION)
enum AgsWorkerThreadStatusFlags
Enum values to control the behavior or indicate internal state of AgsWorkerThread by enable/disable as status flags.
Signal Details
The “do-poll”
signal
void user_function (AgsWorkerThread *thread,gpointer user_data)
The ::do_poll()
run()
Parameters
thread |
the AgsWorkerThread |
|
user_data |
user data set when the signal handler was connected. |
Flags:
Since: