Did I find the right examples for you? yes no

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)
Sets queue in unlocked state.

When in unlocked state, elements can be added or consumed.

src/w/i/wishbone-0.4.10/wishbone/test/testwishbonequeue.py   wishbone(Download)
    def test_rescue(self):
        queue = WishboneQueue()
        queue.lock()
        queue.rescue("test")
        queue.unlock()
            queue.put("test")
        except QueueLocked:
            queue.unlock()
            try:
                queue.put("test")

src/w/i/wishbone-HEAD/wishbone/test/testwishbonequeue.py   wishbone(Download)
    def test_rescue(self):
        queue = WishboneQueue()
        queue.lock()
        queue.rescue("test")
        queue.unlock()
            queue.put("test")
        except QueueLocked:
            queue.unlock()
            try:
                queue.put("test")