Warning
g_async_queue_unref_and_unlock has been deprecated since version 2.8 and should not be used in newly-written code. Reference counting is done atomically.
so g_async_queue_unref() can be used regardless of the queue's
lock.
Decreases the reference count of the asynchronous queue by 1
and releases the lock. This function must be called while holding
the queue's lock. If the reference count went to 0, the queue
will be destroyed and the memory allocated will be freed.
Warning g_async_queue_unref_and_unlock has been deprecated since version 2.8 and should not be used in newly-written code. Reference counting is done atomically. so g_async_queue_unref() can be used regardless of the queue's lock. Decreases the reference count of the asynchronous queue by 1 and releases the lock. This function must be called while holding the queue's lock. If the reference count went to 0, the queue will be destroyed and the memory allocated will be freed.