create

fun create(func: ThreadFunc, joinable: Boolean): <Error class: unknown class><Thread>(source)

⚠️ Deprecated ⚠️

This is deprecated since version 2.32.

Use g_thread_new() instead

---

This function creates a new thread.

The new thread executes the function @func with the argument @data. If the thread was created successfully, it is returned.

Return

the new #GThread on success

Parameters

func

a function to execute in the new thread

joinable

should this thread be joinable?