Did I find the right examples for you? yes no

All Samples(8)  |  Call(8)  |  Derive(0)  |  Import(0)
Locks getting data from queue.

src/w/i/wishbone-0.4.10/wishbone/test/testwishbonequeue.py   wishbone(Download)
    def test_getLock(self):
        queue = WishboneQueue()
        queue.put("test")
        queue.getLock()
        try:
    def test_getUnlock(self):
        queue = WishboneQueue()
        queue.put("test")
        queue.getLock()
        try:
    def test_isLocked(self):
        queue = WishboneQueue()
        queue.getLock()
        assert queue.isLocked() == (True, False)
 
        queue = WishboneQueue()
        queue.put("test")
        queue.getLock()
 
        instance=spawn(go, queue)

src/w/i/wishbone-HEAD/wishbone/test/testwishbonequeue.py   wishbone(Download)
    def test_getLock(self):
        queue = WishboneQueue()
        queue.put("test")
        queue.getLock()
        try:
    def test_getUnlock(self):
        queue = WishboneQueue()
        queue.put("test")
        queue.getLock()
        try:
    def test_isLocked(self):
        queue = WishboneQueue()
        queue.getLock()
        assert queue.isLocked() == (True, False)
 
        queue = WishboneQueue()
        queue.put("test")
        queue.getLock()
 
        instance=spawn(go, queue)