Table of Contents

Class ThreadPool

Namespace
GLib
Assembly
GLib-2.0.dll
public sealed class ThreadPool
Inheritance
ThreadPool
Inherited Members

Constructors

ThreadPool()

public ThreadPool()

ThreadPool(ThreadPoolOwnedHandle)

public ThreadPool(ThreadPoolOwnedHandle handle)

Parameters

handle ThreadPoolOwnedHandle

Properties

Exclusive

public bool Exclusive { get; set; }

Property Value

bool

Handle

public ThreadPoolOwnedHandle Handle { get; }

Property Value

ThreadPoolOwnedHandle

Methods

Equals(ThreadPool?)

public bool Equals(ThreadPool? other)

Parameters

other ThreadPool

Returns

bool

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.

Free(bool, bool)

public void Free(bool immediate, bool wait)

Parameters

immediate bool
wait bool

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

GetMaxIdleTime()

[Version("2.10")]
public static uint GetMaxIdleTime()

Returns

uint

GetMaxThreads()

public int GetMaxThreads()

Returns

int

GetMaxUnusedThreads()

public static int GetMaxUnusedThreads()

Returns

int

GetNumThreads()

public uint GetNumThreads()

Returns

uint

GetNumUnusedThreads()

public static uint GetNumUnusedThreads()

Returns

uint

MoveToFront(IntPtr)

[Version("2.46")]
public bool MoveToFront(IntPtr data)

Parameters

data IntPtr

Returns

bool

NewFull(Func, int, bool)

[Version("2.70")]
public static ThreadPool NewFull(Func func, int maxThreads, bool exclusive)

Parameters

func Func
maxThreads int
exclusive bool

Returns

ThreadPool

Push(IntPtr)

public bool Push(IntPtr data)

Parameters

data IntPtr

Returns

bool

SetMaxIdleTime(uint)

[Version("2.10")]
public static void SetMaxIdleTime(uint interval)

Parameters

interval uint

SetMaxThreads(int)

public bool SetMaxThreads(int maxThreads)

Parameters

maxThreads int

Returns

bool

SetMaxUnusedThreads(int)

public static void SetMaxUnusedThreads(int maxThreads)

Parameters

maxThreads int

StopUnusedThreads()

public static void StopUnusedThreads()

Unprocessed()

public uint Unprocessed()

Returns

uint