Lines Matching refs:woken
763 def f(cls, cond, sleeping, woken, timeout=None): argument
767 woken.release()
784 woken = self.Semaphore(0)
786 p = self.Process(target=self.f, args=(cond, sleeping, woken))
790 p = threading.Thread(target=self.f, args=(cond, sleeping, woken))
800 self.assertReturnsIfImplemented(0, get_value, woken)
809 self.assertReturnsIfImplemented(1, get_value, woken)
818 self.assertReturnsIfImplemented(2, get_value, woken)
827 woken = self.Semaphore(0)
832 args=(cond, sleeping, woken, TIMEOUT1))
837 args=(cond, sleeping, woken, TIMEOUT1))
847 woken.acquire()
848 self.assertReturnsIfImplemented(0, get_value, woken)
855 p = self.Process(target=self.f, args=(cond, sleeping, woken))
859 t = threading.Thread(target=self.f, args=(cond, sleeping, woken))
869 self.assertReturnsIfImplemented(0, get_value, woken)
879 if get_value(woken) == 6:
884 self.assertReturnsIfImplemented(6, get_value, woken)