Table of Contents

Class AsyncQueue

Namespace
GLib.Internal
Assembly
GLib-2.0.dll
public class AsyncQueue
Inheritance
AsyncQueue
Inherited Members

Methods

Length(AsyncQueueHandle)

Calls native method g_async_queue_length.

public static extern int Length(AsyncQueueHandle queue)

Parameters

queue AsyncQueueHandle

Transfer ownership: None Nullable: False

Returns

int

Transfer ownership: None Nullable: False

LengthUnlocked(AsyncQueueHandle)

Calls native method g_async_queue_length_unlocked.

public static extern int LengthUnlocked(AsyncQueueHandle queue)

Parameters

queue AsyncQueueHandle

Transfer ownership: None Nullable: False

Returns

int

Transfer ownership: None Nullable: False

Lock(AsyncQueueHandle)

Calls native method g_async_queue_lock.

public static extern void Lock(AsyncQueueHandle queue)

Parameters

queue AsyncQueueHandle

Transfer ownership: None Nullable: False

New()

Calls native function g_async_queue_new.

public static extern AsyncQueueOwnedHandle New()

Returns

AsyncQueueOwnedHandle

Transfer ownership: Full Nullable: False

NewFull(DestroyNotify)

Calls native function g_async_queue_new_full. Version: 2.16

[Version("2.16")]
public static extern AsyncQueueOwnedHandle NewFull(DestroyNotify itemFreeFunc)

Parameters

itemFreeFunc DestroyNotify

Transfer ownership: None Nullable: True

Returns

AsyncQueueOwnedHandle

Transfer ownership: Full Nullable: False

Pop(AsyncQueueHandle)

Calls native method g_async_queue_pop.

public static extern IntPtr Pop(AsyncQueueHandle queue)

Parameters

queue AsyncQueueHandle

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: True

PopUnlocked(AsyncQueueHandle)

Calls native method g_async_queue_pop_unlocked.

public static extern IntPtr PopUnlocked(AsyncQueueHandle queue)

Parameters

queue AsyncQueueHandle

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: True

Push(AsyncQueueHandle, IntPtr)

Calls native method g_async_queue_push.

public static extern void Push(AsyncQueueHandle queue, IntPtr data)

Parameters

queue AsyncQueueHandle

Transfer ownership: None Nullable: False

data IntPtr

Transfer ownership: None Nullable: False

PushFront(AsyncQueueHandle, IntPtr)

Calls native method g_async_queue_push_front. Version: 2.46

[Version("2.46")]
public static extern void PushFront(AsyncQueueHandle queue, IntPtr item)

Parameters

queue AsyncQueueHandle

Transfer ownership: None Nullable: False

item IntPtr

Transfer ownership: None Nullable: False

PushFrontUnlocked(AsyncQueueHandle, IntPtr)

Calls native method g_async_queue_push_front_unlocked. Version: 2.46

[Version("2.46")]
public static extern void PushFrontUnlocked(AsyncQueueHandle queue, IntPtr item)

Parameters

queue AsyncQueueHandle

Transfer ownership: None Nullable: False

item IntPtr

Transfer ownership: None Nullable: False

PushSorted(AsyncQueueHandle, IntPtr, CompareDataFunc, IntPtr)

Calls native method g_async_queue_push_sorted. Version: 2.10

[Version("2.10")]
public static extern void PushSorted(AsyncQueueHandle queue, IntPtr data, CompareDataFunc func, IntPtr userData)

Parameters

queue AsyncQueueHandle

Transfer ownership: None Nullable: False

data IntPtr

Transfer ownership: None Nullable: False

func CompareDataFunc

Transfer ownership: None Nullable: False

userData IntPtr

Transfer ownership: None Nullable: True

PushSortedUnlocked(AsyncQueueHandle, IntPtr, CompareDataFunc, IntPtr)

Calls native method g_async_queue_push_sorted_unlocked. Version: 2.10

[Version("2.10")]
public static extern void PushSortedUnlocked(AsyncQueueHandle queue, IntPtr data, CompareDataFunc func, IntPtr userData)

Parameters

queue AsyncQueueHandle

Transfer ownership: None Nullable: False

data IntPtr

Transfer ownership: None Nullable: True

func CompareDataFunc

Transfer ownership: None Nullable: False

userData IntPtr

Transfer ownership: None Nullable: True

PushUnlocked(AsyncQueueHandle, IntPtr)

Calls native method g_async_queue_push_unlocked.

public static extern void PushUnlocked(AsyncQueueHandle queue, IntPtr data)

Parameters

queue AsyncQueueHandle

Transfer ownership: None Nullable: False

data IntPtr

Transfer ownership: None Nullable: False

Ref(AsyncQueueHandle)

Calls native method g_async_queue_ref.

public static extern AsyncQueueOwnedHandle Ref(AsyncQueueHandle queue)

Parameters

queue AsyncQueueHandle

Transfer ownership: None Nullable: False

Returns

AsyncQueueOwnedHandle

Transfer ownership: Full Nullable: False

RefUnlocked(AsyncQueueHandle)

Calls native method g_async_queue_ref_unlocked.

public static extern void RefUnlocked(AsyncQueueHandle queue)

Parameters

queue AsyncQueueHandle

Transfer ownership: None Nullable: False

Remove(AsyncQueueHandle, IntPtr)

Calls native method g_async_queue_remove. Version: 2.46

[Version("2.46")]
public static extern bool Remove(AsyncQueueHandle queue, IntPtr item)

Parameters

queue AsyncQueueHandle

Transfer ownership: None Nullable: False

item IntPtr

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

RemoveUnlocked(AsyncQueueHandle, IntPtr)

Calls native method g_async_queue_remove_unlocked. Version: 2.46

[Version("2.46")]
public static extern bool RemoveUnlocked(AsyncQueueHandle queue, IntPtr item)

Parameters

queue AsyncQueueHandle

Transfer ownership: None Nullable: False

item IntPtr

Transfer ownership: None Nullable: True

Returns

bool

Transfer ownership: None Nullable: False

Sort(AsyncQueueHandle, CompareDataFunc, IntPtr)

Calls native method g_async_queue_sort. Version: 2.10

[Version("2.10")]
public static extern void Sort(AsyncQueueHandle queue, CompareDataFunc func, IntPtr userData)

Parameters

queue AsyncQueueHandle

Transfer ownership: None Nullable: False

func CompareDataFunc

Transfer ownership: None Nullable: False

userData IntPtr

Transfer ownership: None Nullable: True

SortUnlocked(AsyncQueueHandle, CompareDataFunc, IntPtr)

Calls native method g_async_queue_sort_unlocked. Version: 2.10

[Version("2.10")]
public static extern void SortUnlocked(AsyncQueueHandle queue, CompareDataFunc func, IntPtr userData)

Parameters

queue AsyncQueueHandle

Transfer ownership: None Nullable: False

func CompareDataFunc

Transfer ownership: None Nullable: False

userData IntPtr

Transfer ownership: None Nullable: True

TimedPop(AsyncQueueHandle, TimeValHandle)

Calls native method g_async_queue_timed_pop.

public static extern IntPtr TimedPop(AsyncQueueHandle queue, TimeValHandle endTime)

Parameters

queue AsyncQueueHandle

Transfer ownership: None Nullable: False

endTime TimeValHandle

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: True

TimedPopUnlocked(AsyncQueueHandle, TimeValHandle)

Calls native method g_async_queue_timed_pop_unlocked.

public static extern IntPtr TimedPopUnlocked(AsyncQueueHandle queue, TimeValHandle endTime)

Parameters

queue AsyncQueueHandle

Transfer ownership: None Nullable: False

endTime TimeValHandle

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: True

TimeoutPop(AsyncQueueHandle, ulong)

Calls native method g_async_queue_timeout_pop.

public static extern IntPtr TimeoutPop(AsyncQueueHandle queue, ulong timeout)

Parameters

queue AsyncQueueHandle

Transfer ownership: None Nullable: False

timeout ulong

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: True

TimeoutPopUnlocked(AsyncQueueHandle, ulong)

Calls native method g_async_queue_timeout_pop_unlocked.

public static extern IntPtr TimeoutPopUnlocked(AsyncQueueHandle queue, ulong timeout)

Parameters

queue AsyncQueueHandle

Transfer ownership: None Nullable: False

timeout ulong

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: True

TryPop(AsyncQueueHandle)

Calls native method g_async_queue_try_pop.

public static extern IntPtr TryPop(AsyncQueueHandle queue)

Parameters

queue AsyncQueueHandle

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: True

TryPopUnlocked(AsyncQueueHandle)

Calls native method g_async_queue_try_pop_unlocked.

public static extern IntPtr TryPopUnlocked(AsyncQueueHandle queue)

Parameters

queue AsyncQueueHandle

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: True

Unlock(AsyncQueueHandle)

Calls native method g_async_queue_unlock.

public static extern void Unlock(AsyncQueueHandle queue)

Parameters

queue AsyncQueueHandle

Transfer ownership: None Nullable: False

Unref(AsyncQueueUnownedHandle)

Calls native method g_async_queue_unref.

public static extern void Unref(AsyncQueueUnownedHandle queue)

Parameters

queue AsyncQueueUnownedHandle

Transfer ownership: Full Nullable: False

UnrefAndUnlock(AsyncQueueHandle)

Calls native method g_async_queue_unref_and_unlock.

public static extern void UnrefAndUnlock(AsyncQueueHandle queue)

Parameters

queue AsyncQueueHandle

Transfer ownership: None Nullable: False