Format: application/octet-stream
⬇ Download File (363 B)
   1  from typing import Any, Callable, Deque, TypeVar
   2  
   3  _ArgType = TypeVar("_ArgType")
   4  
   5  class mutex:
   6      locked: bool
   7      queue: Deque[Any]
   8      def __init__(self) -> None: ...
   9      def test(self) -> bool: ...
  10      def testandset(self) -> bool: ...
  11      def lock(self, function: Callable[[_ArgType], Any], argument: _ArgType) -> None: ...
  12      def unlock(self) -> None: ...
  13