mirror of
https://github.com/python/cpython.git
synced 2025-12-23 09:19:18 +00:00
attempt to fix multiprocessing
This commit is contained in:
parent
e0d9bb83ec
commit
04f7d5397e
1 changed files with 2 additions and 4 deletions
|
|
@ -968,7 +968,6 @@ class AcquirerProxy(BaseProxy):
|
||||||
|
|
||||||
|
|
||||||
class ConditionProxy(AcquirerProxy):
|
class ConditionProxy(AcquirerProxy):
|
||||||
# XXX will Condition.notfyAll() name be available in Py3.0?
|
|
||||||
_exposed_ = ('acquire', 'release', 'wait', 'notify', 'notify_all')
|
_exposed_ = ('acquire', 'release', 'wait', 'notify', 'notify_all')
|
||||||
def wait(self, timeout=None):
|
def wait(self, timeout=None):
|
||||||
return self._callmethod('wait', (timeout,))
|
return self._callmethod('wait', (timeout,))
|
||||||
|
|
@ -978,10 +977,9 @@ class ConditionProxy(AcquirerProxy):
|
||||||
return self._callmethod('notify_all')
|
return self._callmethod('notify_all')
|
||||||
|
|
||||||
class EventProxy(BaseProxy):
|
class EventProxy(BaseProxy):
|
||||||
# XXX will Event.isSet name be available in Py3.0?
|
_exposed_ = ('is_set', 'set', 'clear', 'wait')
|
||||||
_exposed_ = ('isSet', 'set', 'clear', 'wait')
|
|
||||||
def is_set(self):
|
def is_set(self):
|
||||||
return self._callmethod('isSet')
|
return self._callmethod('is_set')
|
||||||
def set(self):
|
def set(self):
|
||||||
return self._callmethod('set')
|
return self._callmethod('set')
|
||||||
def clear(self):
|
def clear(self):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue