Class Thread
- Namespace
- GLib
- Assembly
- GLib-2.0.dll
public sealed class Thread : BoxedRecord, GTypeProvider, InstanceFactory, IEquatable<Thread>, IDisposable
- Inheritance
-
Thread
- Implements
- Inherited Members
Constructors
Thread()
public Thread()
Thread(ThreadOwnedHandle)
public Thread(ThreadOwnedHandle handle)
Parameters
handleThreadOwnedHandle
Properties
Handle
public ThreadOwnedHandle Handle { get; }
Property Value
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
Equals(Thread?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(Thread? other)
Parameters
otherThreadAn object to compare with this object.
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current object.
Returns
ErrorQuark()
public static Quark ErrorQuark()
Returns
Exit(nint)
public static void Exit(nint retval)
Parameters
retvalnint
Foreach(Func)
[Version("2.10")]
public static void Foreach(Func threadFunc)
Parameters
threadFuncFunc
GetGType()
public static Type GetGType()
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
GetInitialized()
[Version("2.20")]
public static bool GetInitialized()
Returns
Init(nint)
public static void Init(nint vtable)
Parameters
vtablenint
InitWithErrorcheckMutexes(nint)
public static void InitWithErrorcheckMutexes(nint vtable)
Parameters
vtablenint
Join()
public nint Join()
Returns
Ref()
[Version("2.32")]
public Thread Ref()
Returns
Self()
public static Thread Self()
Returns
SetPriority(ThreadPriority)
public void SetPriority(ThreadPriority priority)
Parameters
priorityThreadPriority
Unref()
[Version("2.32")]
public void Unref()
Yield()
public static void Yield()