Thread.self

This function returns the glib.Thread corresponding to the current thread. Note that this function does not increase the reference count of the returned struct.

This function will return a glib.Thread even for threads that were not created by GLib (i.e. those created by other threading APIs). This may be useful for thread identification purposes (i.e. comparisons) but you must not use GLib functions (such as Thread.join) on these threads.

class Thread
static
self
()

Return Value

Type: Thread

the glib.Thread representing the current thread