Class
AgsThread
Description
class Ags.Thread : GObject.Object
implements Ags.Connectable {
my_flags: guint,
connectable_flags: guint,
status_flags: volatile guint,
sync_tic_flags: volatile guint,
obj_mutex: GRecMutex,
uuid: AgsUUID*,
current_sync_tic: volatile guint,
delay: gdouble,
tic_delay: gdouble,
frequency: gdouble,
max_precision: gdouble,
last_run_start: gint64,
last_run_end: gint64,
thread: GThread*,
wait_mutex: GMutex,
wait_cond: GCond,
tic_mutex: GMutex,
tic_cond: GCond,
start_queue: GList*,
start_mutex: GMutex,
start_cond: GCond,
parent: AgsThread*,
next: AgsThread*,
prev: AgsThread*,
children: AgsThread*
}
No description available.
Instance methods
ags_thread_find_type
Find gtype
as descendant of thread
. If its a descendant thread,
the ref-count is increased.
since: 3.0.0
ags_thread_run
Only for internal use of ags_thread_loop but you may want to set the your very own class function namely your thread’s routine.
since: 3.0.0
ags_thread_trylock
Locks the threads own mutex if available and sets the
appropriate flag and returning TRUE
. Otherwise return FALSE
without lock.
since: 3.0.0
Methods inherited from AgsConnectable (13)
ags_connectable_add_to_registry
Add connectable to registry.
since: 3.0.0
ags_connectable_connect
Connect the connectable.
since: 3.0.0
ags_connectable_connect_connection
Disconnect the connectable.
since: 3.0.0
ags_connectable_disconnect
Disconnect the connectable.
since: 3.0.0
ags_connectable_disconnect_connection
Disconnect the connectable.
since: 3.0.0
ags_connectable_get_uuid
Get UUID of connectable
.
since: 3.0.0
ags_connectable_has_resource
Check the connectable to have resources.
since: 3.0.0
ags_connectable_is_connected
Check if the connectable
was connected.
since: 3.0.0
ags_connectable_is_ready
Connect the connectable.
since: 3.0.0
ags_connectable_list_resource
List resources as an XML element and return it.
since: 3.0.0
ags_connectable_remove_from_registry
Remove connectable from registry.
since: 3.0.0
ags_connectable_xml_compose
Compose an XML element and return it.
since: 3.0.0
ags_connectable_xml_parse
Parse node
as XML element and apply it.
since: 3.0.0
Signals
Signals inherited from GObject (1)
GObject::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.
Class structure
struct AgsThreadClass {
GObjectClass gobject;
guint (* clock) (
AgsThread* thread
);
void (* start) (
AgsThread* thread
);
void (* run) (
AgsThread* thread
);
void (* stop) (
AgsThread* thread
);
}
No description available.
Class members
gobject: GObjectClass
No description available.
clock: guint (* clock) ( AgsThread* thread )
No description available.
start: void (* start) ( AgsThread* thread )
No description available.
run: void (* run) ( AgsThread* thread )
No description available.
stop: void (* stop) ( AgsThread* thread )
No description available.
Virtual methods
Ags.ThreadClass.run
Only for internal use of ags_thread_loop but you may want to set the your very own class function namely your thread’s routine.
since: 3.0.0
Ags.ThreadClass.stop
Stop the threads loop by unsetting AGS_THREAD_STATUS_RUNNING flag.
since: 3.0.0