Module ImportFrom alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Import alias Assign NameStore Call AttributeLoad NameLoad attr Assert CompareIs Call NameLoad NameLoad AttributeLoad NameLoad attr Assert CompareIs Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert CompareIs Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Assert CompareIs Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Assert CompareIs Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert CompareIs Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad Expr Call AttributeLoad NameLoad attr FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr decorator_list Assert CompareIs Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad TupleLoad Expr Call AttributeLoad NameLoad attr Assert CompareIs Call AttributeLoad NameLoad attr NameLoad Assert CompareEq NameLoad ListLoad Num decorator_list FunctionDef arguments args NameParam defaults body Import alias Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore ListLoad Expr Call AttributeLoad NameLoad attr FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr decorator_list Assert CompareIs Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad TupleLoad Exec Str Dict Str Str NameLoad NameLoad Assert CompareIs Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list FunctionDef arguments args defaults body ImportFrom alias ImportFrom alias FunctionDef arguments args defaults body Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore BoolOpAnd NameLoad UnaryOpNot NameLoad NameLoad Return NameLoad decorator_list Assign AttributeStore NameLoad attr NameLoad FunctionDef arguments args defaults body Assign NameStore Call NameLoad Return NameLoad decorator_list Assign NameStore Call NameLoad NameLoad ListLoad keyword Str Assign NameStore Call NameLoad Assert NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr decorator_list
N/A pypy.module.thread.test.support GenericTestThread pypy.translator.c.test.test_genc compile AppTestLock N/A GenericTestThread N/A test_lock N/A N/A self N/A N/A N/A thread N/A lock N/A N/A thread allocate_lock N/A N/A N/A type lock N/A thread LockType N/A N/A N/A N/A lock locked False N/A N/A raises N/A thread error N/A lock release N/A N/A N/A N/A lock locked False N/A N/A N/A lock acquire N/A N/A N/A N/A lock locked True N/A N/A N/A lock release N/A N/A N/A N/A lock locked False N/A N/A raises N/A thread error N/A lock release N/A N/A N/A N/A lock locked False N/A feedback N/A N/A N/A N/A lock acquire f N/A N/A N/A N/A N/A N/A N/A self busywait 0.25 N/A N/A N/A feedback append 42 N/A N/A N/A lock release N/A N/A N/A N/A N/A lock locked True N/A N/A N/A thread start_new_thread f N/A N/A N/A N/A lock acquire N/A N/A N/A N/A lock locked True N/A N/A feedback N/A 42 N/A test_lock_in_with N/A N/A self N/A N/A N/A thread N/A lock N/A N/A thread allocate_lock N/A feedback N/A N/A N/A N/A lock acquire f N/A N/A N/A N/A N/A N/A N/A self busywait 0.25 N/A N/A N/A feedback append 42 N/A N/A N/A lock release N/A N/A N/A N/A N/A lock locked True N/A N/A N/A thread start_new_thread f N/A N/A 
from __future__ import with_statement
if 1:
        with lock:
            assert lock.locked() is True
            assert feedback == [42]
 N/A lock feedback lock feedback N/A N/A N/A N/A lock locked False N/A N/A test_compile_lock N/A N/A N/A N/A pypy.rlib rgc pypy.module.thread.ll_thread allocate_lock g N/A N/A N/A N/A N/A l N/A allocate_lock N/A ok1 N/A N/A l acquire True N/A ok2 N/A N/A l acquire False N/A N/A N/A l release N/A ok3 N/A N/A l acquire False N/A res N/A ok1 N/A ok2 ok3 N/A res N/A N/A N/A g _dont_inline_ True f N/A N/A N/A N/A N/A res N/A g N/A res N/A N/A fn N/A compile f N/A gcpolicy ref N/A res N/A fn N/A res N/A AppTestLockAgain N/A GenericTestThread N/A N/A test_lock_again N/A N/A AppTestLock test_lock im_func N/A