threading.pyi 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. import _thread
  2. from PikaObj import *
  3. def get_ident() ->int64: ...
  4. class Lock():
  5. def __init__(self): # real signature unknown
  6. self._mutex_ = None
  7. def acquire(self, block:bool, timeout:any) -> bool: ... # real signature unknown; restored from __doc__
  8. def locked(self) -> bool: ...# real signature unknown; restored from __doc__
  9. def release(self): ... # real signature unknown; restored from __doc__
  10. def __del__(self): ...
  11. class RLock():
  12. def __init__(self): # real signature unknown
  13. self._rmutex_ = None
  14. def acquire(self, block:bool, timeout:any) -> bool: ...# real signature unknown; restored from __doc__
  15. def locked(self) -> bool: ... # real signature unknown; restored from __doc__
  16. def release(self): ...# real signature unknown; restored from __doc__
  17. def __del__(self): ...
  18. class Condition:
  19. def __init__(self): # real signature unknown
  20. self._cond_ = None
  21. self._rtmetux_ = None
  22. def wait(self, timeout:any) -> bool: ...
  23. def notify(self, n:int): ...
  24. def notify_all(self): ...
  25. def _is_owned(self) -> bool: ...
  26. def __del__(self): ...
  27. def acquire(self, block:bool, timeout:any) -> bool: ...
  28. def release(self): ...