Lines Matching refs:woken
1204 def f(cls, cond, sleeping, woken, timeout=None): argument
1208 woken.release()
1236 woken = self.Semaphore(0)
1238 p = self.Process(target=self.f, args=(cond, sleeping, woken))
1243 p = threading.Thread(target=self.f, args=(cond, sleeping, woken))
1254 self.assertReturnsIfImplemented(0, get_value, woken)
1263 self.assertReturnsIfImplemented(1, get_value, woken)
1272 self.assertReturnsIfImplemented(2, get_value, woken)
1281 woken = self.Semaphore(0)
1286 args=(cond, sleeping, woken, TIMEOUT1))
1292 args=(cond, sleeping, woken, TIMEOUT1))
1303 woken.acquire()
1304 self.assertReturnsIfImplemented(0, get_value, woken)
1311 p = self.Process(target=self.f, args=(cond, sleeping, woken))
1316 t = threading.Thread(target=self.f, args=(cond, sleeping, woken))
1327 self.assertReturnsIfImplemented(0, get_value, woken)
1335 self.assertReachesEventually(lambda: get_value(woken), 6)
1343 woken = self.Semaphore(0)
1347 p = self.Process(target=self.f, args=(cond, sleeping, woken))
1352 t = threading.Thread(target=self.f, args=(cond, sleeping, woken))
1363 self.assertReturnsIfImplemented(0, get_value, woken)
1371 self.assertReachesEventually(lambda: get_value(woken), 2)
1378 self.assertReachesEventually(lambda: get_value(woken), 6)
1385 self.assertReturnsIfImplemented(6, get_value, woken)