Thread
This function creates a new thread. The new thread starts by invoking
Return
the new #GThread
Since
2.32
Parameters
name
an (optional) name for the new thread
func
a function to execute in the new thread
Allocate a new Thread.
This instance will be allocated on the native heap and automatically freed when this class instance is garbage collected.
Allocate a new Thread using the provided AutofreeScope.
The AutofreeScope manages the allocation lifetime. The most common usage is with memScoped
.
Parameters
scope
The AutofreeScope to allocate this structure in.