VortexAsyncQueue * vortex_async_queue_new (  ) 

Creates a new async message queue, a inter thread communication that allows to communicate and synchronize data between threads inside the same process.

Once created, you can use the following function to push and retrieve data from the queue:

You can increase the reference counting by using vortex_async_queue_ref. If the reference count reaches zero value, the queue is deallocated.

A particular useful function is vortex_async_queue_length which returns the number of queue items minus waiting threads.

Returns:
A newly created async queue, with a reference count equal to 1. To dealloc it when no longer needed, use vortex_async_queue_unref.