Thread

constructor(name: String? = null, func: ThreadFunc)(source)

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


constructor()(source)

Allocate a new Thread.

This instance will be allocated on the native heap and automatically freed when this class instance is garbage collected.


constructor(scope: <Error class: unknown class>)(source)

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.


constructor(glibThreadPointer: <Error class: unknown class><<Error class: unknown class>>)(source)