Table of Contents

Class Thread

Namespace
GLib
Assembly
GLib-2.0.dll
public sealed class Thread : BoxedRecord, IEquatable<Thread>
Inheritance
Thread
Implements
Inherited Members

Constructors

Thread()

public Thread()

Thread(ThreadOwnedHandle)

public Thread(ThreadOwnedHandle handle)

Parameters

handle ThreadOwnedHandle

Properties

Handle

public ThreadOwnedHandle Handle { get; }

Property Value

ThreadOwnedHandle

Methods

Equals(Thread?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(Thread? other)

Parameters

other Thread

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

ErrorQuark()

public static Quark ErrorQuark()

Returns

Quark

Exit(IntPtr)

public static void Exit(IntPtr retval)

Parameters

retval IntPtr

Foreach(Func)

[Version("2.10")]
public static void Foreach(Func threadFunc)

Parameters

threadFunc Func

GetGType()

public static Type GetGType()

Returns

Type

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

bool

Init(IntPtr)

public static void Init(IntPtr vtable)

Parameters

vtable IntPtr

InitWithErrorcheckMutexes(IntPtr)

public static void InitWithErrorcheckMutexes(IntPtr vtable)

Parameters

vtable IntPtr

Join()

public IntPtr Join()

Returns

IntPtr

Ref()

[Version("2.32")]
public Thread Ref()

Returns

Thread

Self()

public static Thread Self()

Returns

Thread

SetPriority(ThreadPriority)

public void SetPriority(ThreadPriority priority)

Parameters

priority ThreadPriority

Unref()

[Version("2.32")]
public void Unref()

Yield()

public static void Yield()