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
Handle
public ThreadPoolOwnedHandle Handle { get; }
Property Value
Methods
Equals(ThreadPool?)
public bool Equals(ThreadPool? other)
Parameters
other
ThreadPool
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
obj
objectThe 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(IntPtr)
[Version("2.46")]
public bool MoveToFront(IntPtr data)
Parameters
data
IntPtr
Returns
NewFull(Func, int, bool)
[Version("2.70")]
public static ThreadPool NewFull(Func func, int maxThreads, bool exclusive)
Parameters
Returns
Push(IntPtr)
public bool Push(IntPtr data)
Parameters
data
IntPtr
Returns
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
SetMaxUnusedThreads(int)
public static void SetMaxUnusedThreads(int maxThreads)
Parameters
maxThreads
int
StopUnusedThreads()
public static void StopUnusedThreads()
Unprocessed()
public uint Unprocessed()