Skip to content

MTY_QueuePushPtr

chrisd1100 edited this page Aug 25, 2022 · 2 revisions

Push a pointer allocated by the caller to a queue.

bool MTY_QueuePushPtr(
    MTY_Queue * ctx,
    void *      opaque,
    size_t      size
);

Parameters

ctx (MTY_Queue *)

An MTY_Queue.

opaque (void *)

Value you allocated and are responsible for freeing.

size (size_t)

Size in bytes of opaque. This value is returned by MTY_QueuePopPtr.

Return value

bool

Returns true if opaque was successfully pushed to the queue, otherwise false if there was no input buffer available.

Platform support

Windows   macOS   Android   Linux   Web  

See also

Module: Struct

Clone this wiki locally