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
handleThreadPoolOwnedHandle
Properties
Exclusive
public bool Exclusive { get; set; }
Property Value
Handle
public ThreadPoolOwnedHandle Handle { get; }
Property Value
Methods
Equals(ThreadPool?)
public bool Equals(ThreadPool? other)
Parameters
otherThreadPool
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
Free(bool, bool)
public void Free(bool immediate, bool wait)
Parameters
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
GetMaxThreads()
public int GetMaxThreads()
Returns
GetMaxUnusedThreads()
public static int GetMaxUnusedThreads()
Returns
GetNumThreads()
public uint GetNumThreads()
Returns
GetNumUnusedThreads()
public static uint GetNumUnusedThreads()
Returns
MoveToFront(nint)
[Version("2.46")]
public bool MoveToFront(nint data)
Parameters
datanint
Returns
NewFull(Func, int, bool)
[Version("2.70")]
public static ThreadPool NewFull(Func func, int maxThreads, bool exclusive)
Parameters
Returns
Push(nint)
public bool Push(nint data)
Parameters
datanint
Returns
SetMaxIdleTime(uint)
[Version("2.10")]
public static void SetMaxIdleTime(uint interval)
Parameters
intervaluint
SetMaxThreads(int)
public bool SetMaxThreads(int maxThreads)
Parameters
maxThreadsint
Returns
SetMaxUnusedThreads(int)
public static void SetMaxUnusedThreads(int maxThreads)
Parameters
maxThreadsint
StopUnusedThreads()
public static void StopUnusedThreads()
Unprocessed()
public uint Unprocessed()