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 () |
#define | AGS_IS_WORKER_THREAD() |
#define | AGS_IS_WORKER_THREAD_CLASS() |
#define | AGS_WORKER_THREAD() |
#define | AGS_WORKER_THREAD_CLASS() |
#define | AGS_WORKER_THREAD_GET_CLASS() |
|
ags_worker_thread_get_type () |
|
ags_worker_thread_status_flags_get_type () |
Types and Values
#define | AGS_WORKER_THREAD_DEFAULT_JIFFIE |
enum | AgsWorkerThreadStatusFlags |
#define | AGS_TYPE_WORKER_THREAD |
#define | AGS_TYPE_WORKER_THREAD_STATUS_FLAGS |
struct | AgsWorkerThread |
struct | AgsWorkerThreadClass |
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()
You usually connect to AgsThread::do_poll()
AGS_WORKER_THREAD_STATUS_RUNNING
status flag is set.
You might want to inject to a thread tree using a AgsTask implementation.
Functions
ags_worker_thread_test_status_flags ()
gboolean ags_worker_thread_test_status_flags (AgsWorkerThread *worker_thread
,AgsWorkerThreadStatusFlags 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
,AgsWorkerThreadStatusFlags status_flags
);
Set status flags.
Since:
ags_worker_thread_unset_status_flags ()
void ags_worker_thread_unset_status_flags (AgsWorkerThread *worker_thread
,AgsWorkerThreadStatusFlags 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:
AGS_IS_WORKER_THREAD()
#define AGS_IS_WORKER_THREAD(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_WORKER_THREAD))
AGS_IS_WORKER_THREAD_CLASS()
#define AGS_IS_WORKER_THREAD_CLASS(class) (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_WORKER_THREAD))
AGS_WORKER_THREAD()
#define AGS_WORKER_THREAD(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_WORKER_THREAD, AgsWorkerThread))
AGS_WORKER_THREAD_CLASS()
#define AGS_WORKER_THREAD_CLASS(class) (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_WORKER_THREAD, AgsWorkerThreadClass))
AGS_WORKER_THREAD_GET_CLASS()
#define AGS_WORKER_THREAD_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_WORKER_THREAD, AgsWorkerThreadClass))
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.
AGS_TYPE_WORKER_THREAD_STATUS_FLAGS
#define AGS_TYPE_WORKER_THREAD_STATUS_FLAGS (ags_worker_thread_status_flags_get_type())
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: