Thread


Object Hierarchy:

Object hierarchy for Thread

Description:

[ Compact ]
[ Version ( since = "2.32" ) ]
[ CCode ( ref_function = "g_thread_ref" , type_id = "G_TYPE_THREAD" , unref_function = "g_thread_unref" ) ]
public class Thread<T>

The Thread struct represents a running thread.

This struct is returned by Thread or Thread.try. You can obtain the Thread struct representing the current thread by calling self.

GThread is refcounted, see g_thread_ref and g_thread_unref. The thread represented by it holds a reference while it is running, and 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.


Namespace: GLib
Package: glib-2.0

Content:

Static methods:

Creation methods:

Methods: