src/eric7/EricUtilities/EricMutexLocker.py

branch
eric7
changeset 10689
3ede487187f2
parent 10439
21c28b0f9e41
child 11090
f5f5f5803935
equal deleted inserted replaced
10688:0d9853ceb288 10689:3ede487187f2
33 """ 33 """
34 self.__mutex.lock() 34 self.__mutex.lock()
35 35
36 return self 36 return self
37 37
38 def __exit__(self, exc_type, exc_value, traceback): 38 def __exit__(self, _exc_type, _exc_value, _traceback):
39 """ 39 """
40 Special method called when exiting the runtime ccontext. 40 Special method called when exiting the runtime ccontext.
41 41
42 @param exc_type type of an exception raised in the runtime context 42 @param _exc_type type of an exception raised in the runtime context (unused)
43 @type Class 43 @type Class
44 @param exc_value value of an exception raised in the runtime context 44 @param _exc_value value of an exception raised in the runtime context (unused)
45 @type Exception 45 @type Exception
46 @param traceback traceback of an exception raised in the runtime 46 @param _traceback traceback of an exception raised in the runtime
47 context 47 context (unused)
48 @type Traceback 48 @type Traceback
49 @return always returns None to not suppress any exception 49 @return always returns None to not suppress any exception
50 @rtype None 50 @rtype None
51 """ 51 """
52 self.__mutex.unlock() 52 self.__mutex.unlock()

eric ide

mercurial