Guard.py
Go to the documentation of this file.
1 #!/usr/bin/env python
2 # -*- coding: euc-jp -*-
3 
4 
18 
19 
20 
32 class ScopedLock:
33  """
34  """
35 
36 
48  def __init__(self, mutex):
49  self.mutex = mutex
50  self.mutex.acquire()
51 
52 
53 
64  def __del__(self):
65  self.mutex.release()
66 
def __init__(self, mutex)
Definition: Guard.py:48


openrtm_aist_python
Author(s): Shinji Kurihara
autogenerated on Thu Jun 6 2019 19:11:34