Class Thread
public class Thread
- Inheritance
-
Thread
- Inherited Members
Methods
Create(ThreadFunc, IntPtr, bool, out ErrorOwnedHandle)
Calls native function g_thread_create.
public static extern ThreadOwnedHandle Create(ThreadFunc func, IntPtr data, bool joinable, out ErrorOwnedHandle error)
Parameters
func
ThreadFuncTransfer ownership: None Nullable: False
data
IntPtrTransfer ownership: None Nullable: True
joinable
boolTransfer ownership: None Nullable: False
error
ErrorOwnedHandle
Returns
- ThreadOwnedHandle
Transfer ownership: Full Nullable: False
CreateFull(ThreadFunc, IntPtr, ulong, bool, bool, ThreadPriority, out ErrorOwnedHandle)
Calls native function g_thread_create_full.
public static extern ThreadOwnedHandle CreateFull(ThreadFunc func, IntPtr data, ulong stackSize, bool joinable, bool bound, ThreadPriority priority, out ErrorOwnedHandle error)
Parameters
func
ThreadFuncTransfer ownership: None Nullable: False
data
IntPtrTransfer ownership: None Nullable: True
stackSize
ulongTransfer ownership: None Nullable: False
joinable
boolTransfer ownership: None Nullable: False
bound
boolTransfer ownership: None Nullable: False
priority
ThreadPriorityTransfer ownership: None Nullable: False
error
ErrorOwnedHandle
Returns
- ThreadOwnedHandle
Transfer ownership: Full Nullable: False
ErrorQuark()
Calls native function g_thread_error_quark.
public static extern uint ErrorQuark()
Returns
- uint
Transfer ownership: None Nullable: False
Exit(IntPtr)
Calls native function g_thread_exit.
public static extern void Exit(IntPtr retval)
Parameters
retval
IntPtrTransfer ownership: None Nullable: True
Foreach(Func, IntPtr)
Calls native function g_thread_foreach. Version: 2.10
[Version("2.10")]
public static extern void Foreach(Func threadFunc, IntPtr userData)
Parameters
threadFunc
FuncTransfer ownership: None Nullable: False
userData
IntPtrTransfer ownership: None Nullable: True
GetGType()
Calls native function g_thread_get_type.
public static extern nuint GetGType()
Returns
- nuint
Transfer ownership: None Nullable: False
GetInitialized()
Calls native function g_thread_get_initialized. Version: 2.20
[Version("2.20")]
public static extern bool GetInitialized()
Returns
- bool
Transfer ownership: None Nullable: False
Init(IntPtr)
Calls native function g_thread_init.
public static extern void Init(IntPtr vtable)
Parameters
vtable
IntPtrTransfer ownership: None Nullable: True
InitWithErrorcheckMutexes(IntPtr)
Calls native function g_thread_init_with_errorcheck_mutexes.
public static extern void InitWithErrorcheckMutexes(IntPtr vtable)
Parameters
vtable
IntPtrTransfer ownership: None Nullable: True
Join(ThreadUnownedHandle)
Calls native method g_thread_join.
public static extern IntPtr Join(ThreadUnownedHandle thread)
Parameters
thread
ThreadUnownedHandleTransfer ownership: Full Nullable: False
Returns
- IntPtr
Transfer ownership: Full Nullable: True
New(NullableUtf8StringHandle, ThreadFunc, IntPtr)
Calls native constructor g_thread_new. Version: 2.32
[Version("2.32")]
public static extern ThreadOwnedHandle New(NullableUtf8StringHandle name, ThreadFunc func, IntPtr data)
Parameters
name
NullableUtf8StringHandleTransfer ownership: None Nullable: True
func
ThreadFuncTransfer ownership: None Nullable: False
data
IntPtrTransfer ownership: None Nullable: True
Returns
- ThreadOwnedHandle
Transfer ownership: Full Nullable: False
Ref(ThreadHandle)
Calls native method g_thread_ref. Version: 2.32
[Version("2.32")]
public static extern ThreadOwnedHandle Ref(ThreadHandle thread)
Parameters
thread
ThreadHandleTransfer ownership: None Nullable: False
Returns
- ThreadOwnedHandle
Transfer ownership: Full Nullable: False
Self()
Calls native function g_thread_self.
public static extern ThreadUnownedHandle Self()
Returns
- ThreadUnownedHandle
Transfer ownership: None Nullable: False
SetPriority(ThreadHandle, ThreadPriority)
Calls native method g_thread_set_priority.
public static extern void SetPriority(ThreadHandle thread, ThreadPriority priority)
Parameters
thread
ThreadHandleTransfer ownership: None Nullable: False
priority
ThreadPriorityTransfer ownership: None Nullable: False
TryNew(NullableUtf8StringHandle, ThreadFunc, IntPtr, out ErrorOwnedHandle)
Calls native constructor g_thread_try_new. Version: 2.32
[Version("2.32")]
public static extern ThreadOwnedHandle TryNew(NullableUtf8StringHandle name, ThreadFunc func, IntPtr data, out ErrorOwnedHandle error)
Parameters
name
NullableUtf8StringHandleTransfer ownership: None Nullable: True
func
ThreadFuncTransfer ownership: None Nullable: False
data
IntPtrTransfer ownership: None Nullable: True
error
ErrorOwnedHandle
Returns
- ThreadOwnedHandle
Transfer ownership: Full Nullable: False
Unref(ThreadUnownedHandle)
Calls native method g_thread_unref. Version: 2.32
[Version("2.32")]
public static extern void Unref(ThreadUnownedHandle thread)
Parameters
thread
ThreadUnownedHandleTransfer ownership: Full Nullable: False
Yield()
Calls native function g_thread_yield.
public static extern void Yield()