AsyncQueue.lock
void lock()Acquires the queue's lock. If another thread is already holding the lock, this call will block until the lock becomes available.
Call [glib.async_queue.AsyncQueue.unlock] to drop the lock again.
While holding the lock, you can only call the g_async_queue_*_unlocked() functions on queue. Otherwise, deadlock may occur.