/* While holding the lock, you can only call the g_async_queue_*_unlocked() functions on @queue. Otherwise, deadlock may occur.  */
void g_async_queue_lock(GAsyncQueue *queue)
/* While holding the lock, you can only call the g_async_queue_*_unlocked() functions on @queue. Otherwise, deadlock may occur.  */
void g_async_queue_lock(GAsyncQueue *queue)
{
  g_return_if_fail (queue);
  g_mutex_lock (&queue->mutex);
}