Top |
#define | AGS_RETURNABLE_THREAD_GET_RESET_MUTEX() |
void | (*AgsReturnableThreadCallback) () |
gboolean | ags_returnable_thread_test_flags () |
void | ags_returnable_thread_set_flags () |
void | ags_returnable_thread_unset_flags () |
void | ags_returnable_thread_safe_run () |
void | ags_returnable_thread_connect_safe_run () |
void | ags_returnable_thread_disconnect_safe_run () |
AgsReturnableThread * | ags_returnable_thread_new () |
The AgsReturnableThread acts as thread. It should return after a short while because of limited thread pool.
#define AGS_RETURNABLE_THREAD_GET_RESET_MUTEX(obj) (&(((AgsReturnableThread *) obj)->reset_mutex))
void (*AgsReturnableThreadCallback) (AgsReturnableThread *returnable_thread
,gpointer data
);
gboolean ags_returnable_thread_test_flags (AgsReturnableThread *returnable_thread
,AgsReturnableThreadFlags flags
);
Test flags
to be set on returnable_thread
.
Since: 3.0.0
void ags_returnable_thread_set_flags (AgsReturnableThread *returnable_thread
,AgsReturnableThreadFlags flags
);
Set flags.
Since: 3.0.0
void ags_returnable_thread_unset_flags (AgsReturnableThread *returnable_thread
,AgsReturnableThreadFlags flags
);
Unset flags.
Since: 3.0.0
void
ags_returnable_thread_safe_run (AgsReturnableThread *returnable_thread
);
void ags_returnable_thread_connect_safe_run (AgsReturnableThread *returnable_thread
,AgsReturnableThreadCallback callback
);
Connects callback
to thread
.
Since: 3.0.0
void
ags_returnable_thread_disconnect_safe_run
(AgsReturnableThread *returnable_thread
);
Disconnects callback of thread
.
Since: 3.0.0
AgsReturnableThread *
ags_returnable_thread_new (GObject *thread_pool
);
Create a new instance of AgsReturnableThread.
Since: 3.0.0
#define AGS_RETURNABLE_THREAD_DEFAULT_JIFFIE (AGS_THREAD_DEFAULT_MAX_PRECISION)
Enum values to control the behavior or indicate internal state of AgsReturnableThread by enable/disable as flags.
“thread-pool”
property “thread-pool” GObject *
The assigned AgsThreadPool providing default settings.
Owner: AgsReturnableThread
Flags: Read / Write
Since: 3.0.0
“safe-run”
signalvoid user_function (AgsReturnableThread *returnable_thread, gpointer user_data)
The ::safe-run is invoked durin AgsThread::run as a context safe wrapper.
Flags: Run Last
Since: 3.0.0