Module Import alias Import alias Import alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Num keyword Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Num Num Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword Num NameLoad Expr Call AttributeLoad NameLoad attr CompareGtE BinOpSub Call AttributeLoad NameLoad attr NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr keyword NameLoad keyword Num decorator_list decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore ListLoad Num Num FunctionDef arguments args NameParam defaults body While CompareLt Call NameLoad NameLoad Num body With NameLoad body AugAssignAdd SubscriptStore NameLoad Index BinOpSub NameLoad Num Num Expr Call AttributeLoad NameLoad attr Num decorator_list Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Num Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assert CompareLt Call NameLoad BinOpSub SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Call NameLoad BinOpMult Call NameLoad NameLoad Num NameLoad decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr
N/A N/A time N/A unittest N/A eventlet eventlet semaphore tests LimitedTestCase TestSemaphore N/A LimitedTestCase N/A test_bounded N/A N/A self N/A N/A N/A sem N/A N/A semaphore CappedSemaphore 2 limit 3 N/A N/A N/A self assertEqual N/A N/A sem acquire True N/A N/A N/A self assertEqual N/A N/A sem acquire True N/A gt1 N/A N/A eventlet spawn N/A sem release N/A N/A N/A self assertEqual N/A N/A sem acquire True N/A N/A N/A self assertEqual -3 N/A sem balance N/A N/A N/A sem release N/A N/A N/A sem release N/A N/A N/A sem release N/A gt2 N/A N/A eventlet spawn N/A sem acquire N/A N/A N/A sem release N/A N/A N/A self assertEqual 3 N/A sem balance N/A N/A N/A gt1 wait N/A N/A N/A gt2 wait N/A test_bounded_with_zero_limit N/A N/A self N/A N/A N/A sem N/A N/A semaphore CappedSemaphore 0 0 N/A gt N/A N/A eventlet spawn N/A sem acquire N/A N/A N/A sem release N/A N/A N/A gt wait N/A test_non_blocking N/A N/A self N/A N/A N/A sem N/A N/A semaphore Semaphore 0 N/A N/A N/A self assertEqual N/A N/A sem acquire blocking False False N/A test_timeout N/A N/A self N/A N/A N/A sem N/A N/A semaphore Semaphore 0 N/A start N/A N/A time time N/A N/A N/A self assertEqual N/A N/A sem acquire timeout 0.1 False N/A N/A N/A self assertTrue N/A N/A N/A N/A time time start 0.1 N/A test_timeout_non_blocking N/A N/A self N/A N/A N/A sem N/A N/A semaphore Semaphore N/A N/A N/A self assertRaises ValueError N/A sem acquire blocking False timeout 1 N/A N/A test_semaphore_contention N/A N/A N/A N/A N/A g_mutex N/A N/A semaphore Semaphore N/A counts N/A 0 0 worker N/A N/A no N/A N/A N/A N/A N/A min counts 200 N/A N/A g_mutex N/A N/A N/A counts N/A N/A no 1 1 N/A N/A N/A eventlet sleep 0.001 N/A N/A t1 N/A N/A eventlet spawn worker no 1 N/A t2 N/A N/A eventlet spawn worker no 2 N/A N/A N/A eventlet sleep 0.5 N/A N/A N/A t1 kill N/A N/A N/A t2 kill N/A N/A N/A abs N/A N/A counts N/A 0 N/A counts N/A 1 N/A int N/A N/A min counts 0.1 counts N/A N/A N/A __name__ __main__ N/A N/A N/A N/A unittest main