GThread

The #GThread struct represents a running thread. This struct is returned by glib.thread.Thread.new_ or glib.thread.Thread.tryNew. You can obtain the #GThread struct representing the current thread by calling glib.thread.Thread.self.

GThread is refcounted, see glib.thread.Thread.ref_ and glib.thread.Thread.unref. The thread represented by it holds a reference while it is running, and glib.thread.Thread.join consumes the reference that it is given, so it is normally not necessary to manage GThread references explicitly.

The structure is opaque -- none of its fields may be directly accessed.

Members

Variables

data
void* data;
func
GThreadFunc func;
joinable
bool joinable;
priority
GThreadPriority priority;