Class AsyncQueue
- Namespace
- GLib
- Assembly
- GLib-2.0.dll
public sealed class AsyncQueue : IDisposable
- Inheritance
-
AsyncQueue
- Implements
- Inherited Members
Constructors
AsyncQueue(AsyncQueueOwnedHandle)
public AsyncQueue(AsyncQueueOwnedHandle handle)
Parameters
handle
AsyncQueueOwnedHandle
Properties
Handle
public AsyncQueueOwnedHandle Handle { get; }
Property Value
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
Equals(AsyncQueue?)
public bool Equals(AsyncQueue? other)
Parameters
other
AsyncQueue
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
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
Length()
public int Length()
Returns
LengthUnlocked()
public int LengthUnlocked()
Returns
Lock()
public void Lock()
New()
public static AsyncQueue New()
Returns
Pop()
public nint Pop()
Returns
PopUnlocked()
public nint PopUnlocked()
Returns
Push(nint)
public void Push(nint data)
Parameters
data
nint
PushFront(nint)
[Version("2.46")]
public void PushFront(nint item)
Parameters
item
nint
PushFrontUnlocked(nint)
[Version("2.46")]
public void PushFrontUnlocked(nint item)
Parameters
item
nint
PushSorted(nint, CompareDataFunc)
[Version("2.10")]
public void PushSorted(nint data, CompareDataFunc func)
Parameters
data
nintfunc
CompareDataFunc
PushSortedUnlocked(nint, CompareDataFunc)
[Version("2.10")]
public void PushSortedUnlocked(nint data, CompareDataFunc func)
Parameters
data
nintfunc
CompareDataFunc
PushUnlocked(nint)
public void PushUnlocked(nint data)
Parameters
data
nint
Ref()
public AsyncQueue Ref()
Returns
RefUnlocked()
public void RefUnlocked()
Remove(nint)
[Version("2.46")]
public bool Remove(nint item)
Parameters
item
nint
Returns
RemoveUnlocked(nint)
[Version("2.46")]
public bool RemoveUnlocked(nint item)
Parameters
item
nint
Returns
Sort(CompareDataFunc)
[Version("2.10")]
public void Sort(CompareDataFunc func)
Parameters
func
CompareDataFunc
SortUnlocked(CompareDataFunc)
[Version("2.10")]
public void SortUnlocked(CompareDataFunc func)
Parameters
func
CompareDataFunc
TimedPop(TimeVal)
public nint TimedPop(TimeVal endTime)
Parameters
endTime
TimeVal
Returns
TimedPopUnlocked(TimeVal)
public nint TimedPopUnlocked(TimeVal endTime)
Parameters
endTime
TimeVal
Returns
TimeoutPop(ulong)
public nint TimeoutPop(ulong timeout)
Parameters
timeout
ulong
Returns
TimeoutPopUnlocked(ulong)
public nint TimeoutPopUnlocked(ulong timeout)
Parameters
timeout
ulong
Returns
TryPop()
public nint TryPop()
Returns
TryPopUnlocked()
public nint TryPopUnlocked()
Returns
Unlock()
public void Unlock()
Unref()
public void Unref()
UnrefAndUnlock()
public void UnrefAndUnlock()