-
Notifications
You must be signed in to change notification settings - Fork 56
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
);
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
.
bool
Returns true
if opaque
was successfully pushed to the queue, otherwise false
if there was no input buffer available.