| Top |
| pthread_mutex_t * | ags_main_loop_get_tree_lock () |
| void | ags_main_loop_set_application_context () |
| AgsApplicationContext * | ags_main_loop_get_application_context () |
| void | ags_main_loop_set_async_queue () |
| GObject * | ags_main_loop_get_async_queue () |
| void | ags_main_loop_set_tic () |
| guint | ags_main_loop_get_tic () |
| void | ags_main_loop_set_last_sync () |
| guint | ags_main_loop_get_last_sync () |
| void | ags_main_loop_interrupt () |
| gboolean | ags_main_loop_monitor () |
| void | ags_main_loop_change_frequency () |
| #define | AGS_IS_MAIN_LOOP() |
| #define | AGS_IS_MAIN_LOOP_INTERFACE() |
| #define | AGS_MAIN_LOOP() |
| #define | AGS_MAIN_LOOP_GET_INTERFACE() |
| #define | AGS_MAIN_LOOP_INTERFACE() |
| GType | ags_main_loop_get_type () |
pthread_mutex_t *
ags_main_loop_get_tree_lock (AgsMainLoop *main_loop);
Retrieve the tree mutex.
Since: 2.0.0
void ags_main_loop_set_application_context (AgsMainLoop *main_loop,AgsApplicationContext *application_context);
Sets the application context.
Since: 2.0.0
AgsApplicationContext *
ags_main_loop_get_application_context (AgsMainLoop *main_loop);
Retrieve the AgsApplicationContext.
Since: 2.0.0
void ags_main_loop_set_async_queue (AgsMainLoop *main_loop,GObject *async_queue);
Sets the asynchronous queue.
Since: 2.0.0
GObject *
ags_main_loop_get_async_queue (AgsMainLoop *main_loop);
Retrieve the AgsAsyncQueue.
Since: 2.0.0
void ags_main_loop_set_tic (AgsMainLoop *main_loop,guint tic);
Sets tic to tic
.
Since: 2.0.0
guint
ags_main_loop_get_tic (AgsMainLoop *main_loop);
Retrieve current tic of synchronization context.
Since: 2.0.0
void ags_main_loop_set_last_sync (AgsMainLoop *main_loop,guint last_sync);
Sets last sync to last_sync
.
Since: 2.0.0
guint
ags_main_loop_get_last_sync (AgsMainLoop *main_loop);
Retrieve last sync as tic of synchronization context.
Since: 2.0.0
void ags_main_loop_interrupt (AgsMainLoop *main_loop,int sig,guint time_cycle,guint *time_spent);
Notify about interrupt threads.
main_loop |
the AgsMainLoop |
|
sig |
the singal number |
|
time_cycle |
the amount of time of a cycle |
|
time_spent |
the amount of time passed since last cycle |
Since: 2.0.0
gboolean ags_main_loop_monitor (AgsMainLoop *main_loop,guint time_cycle,guint *time_spent);
Notify to monitor time.
main_loop |
the AgsMainLoop |
|
time_cycle |
the amount of time of a cycle |
|
time_spent |
the amount of time passed since last cycle |
Since: 2.0.0
void ags_main_loop_change_frequency (AgsMainLoop *main_loop,gdouble frequency);
Change frequency.
Since: 2.0.0
#define AGS_IS_MAIN_LOOP(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_MAIN_LOOP))
#define AGS_IS_MAIN_LOOP_INTERFACE(vtable) (G_TYPE_CHECK_CLASS_TYPE((vtable), AGS_TYPE_MAIN_LOOP))
#define AGS_MAIN_LOOP(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_MAIN_LOOP, AgsMainLoop))
#define AGS_MAIN_LOOP_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE((obj), AGS_TYPE_MAIN_LOOP, AgsMainLoopInterface))
#define AGS_MAIN_LOOP_INTERFACE(vtable) (G_TYPE_CHECK_CLASS_CAST((vtable), AGS_TYPE_MAIN_LOOP, AgsMainLoopInterface))
struct AgsMainLoopInterface {
GTypeInterface ginterface;
pthread_mutex_t* (*get_tree_lock)(AgsMainLoop *main_loop);
void (*set_application_context)(AgsMainLoop *main_loop, AgsApplicationContext *application_context);
AgsApplicationContext* (*get_application_context)(AgsMainLoop *main_loop);
void (*set_async_queue)(AgsMainLoop *main_loop, GObject *async_queue);
GObject* (*get_async_queue)(AgsMainLoop *main_loop);
void (*set_tic)(AgsMainLoop *main_loop, guint tic);
guint (*get_tic)(AgsMainLoop *main_loop);
void (*set_last_sync)(AgsMainLoop *main_loop, guint last_sync);
guint (*get_last_sync)(AgsMainLoop *main_loop);
void (*interrupt)(AgsMainLoop *main_loop,
int sig,
guint time_cycle, guint *time_spent);
gboolean (*monitor)(AgsMainLoop *main_loop,
guint time_cycle, guint *time_spent);
void (*change_frequency)(AgsMainLoop *main_loop,
gdouble frequency);
};
“change-frequency” signalvoid user_function (AgsMainLoop *main_loop, gdouble frequency, gpointer user_data)
Change frequency.
main_loop |
the AgsMainLoop |
|
frequency |
the new frequency |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 2.0.0
“interrupt” signalvoid user_function (AgsMainLoop *main_loop, gint sig, guint time_cycle, gpointer time_spent, gpointer user_data)
Notify about interrupt threads.
main_loop |
the AgsMainLoop |
|
sig |
the signal number |
|
time_cycle |
the amount of time of a cycle |
|
time_spent |
the amount of time passed since last cycle |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 2.0.0
“monitor” signalgboolean user_function (AgsMainLoop *main_loop, guint time_cycle, gpointer time_spent, gpointer user_data)
Notify to monitor time.
main_loop |
the AgsMainLoop |
|
time_cycle |
the amount of time of a cycle |
|
time_spent |
the amount of time passed since last cycle |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 2.0.0