Home | History | Annotate | Download | only in test

Lines Matching full:condition

546         #   Condition.  (See threading.py:Thread.join().)
547 # - We stub out the acquire method on the condition to force it to wait
551 # - The main thread of the parent process enters Condition.wait(),
556 # lock in the Thread._block Condition object and hang, because the
581 # Stub out the private condition variable's lock acquire method.
587 condition = w._block
588 orig_acquire = condition.acquire
601 condition.acquire = my_acquire
614 # lock in the thread's condition variable's waiters list. Even though
618 # OS X are (as of this writing) implemented with a mutex + condition
646 # Stub out the private condition variable's _release_save method.
647 # This releases the condition's lock and flips the global that
651 condition = w._block
652 orig_release_save = condition._release_save
656 # Waiter lock held here, condition lock released.
658 condition._release_save = my_release_save
724 # An Condition uses an RLock by default and exports its API.
725 locktype = staticmethod(threading.Condition)
728 condtype = staticmethod(threading.Condition)