Exemplo n.º 1
0
 def __enter__(self):
     _async.debug("write lock 2")
     _async.write_lock(o)
Exemplo n.º 2
0
 def __exit__(self, *exc):
     if o:
         _async.debug("write unlock 1")
         _async.write_unlock(o)
     _async.release_gil()
Exemplo n.º 3
0
 def __enter__(self):
     if o:
         _async.debug("write lock 1")
         _async.write_lock(o)
     _async.acquire_gil()
Exemplo n.º 4
0
 def __exit__(self, *exc):
     _async.debug("read unlock 2")
     _async.read_unlock(o)
Exemplo n.º 5
0
 def __enter__(self):
     _async.debug("read lock 2")
     _async.read_lock(o)
Exemplo n.º 6
0
 def __exit__(self, *exc):
     _async.debug("write unlock 2")
     _async.write_unlock(o)