py: threading
2017-11-03 20:26:09 10 举报
AI智能生成
python threading Mindmap
作者其他创作
大纲/内容
Semaphore Objects
class threading.Semaphore(value=1)class threading.BoundedSemaphore(value=1)
Lock/RLock Objects
class threading.Lockclass threading.RLock
Condition Objects
class threading.Condition(lock=None)
acquire(*args)release()
notify(n=1)notify_all()
Barrier Objects
wait(timeout=None)
reset()
abort()
partiesn_waitingbroken
exception threading.BrokenBarrierError
threading
Thread Objects
start()run()
join(timeout=None)
namegetName()setName()
ident
is_alive()
daemonisDaemon()setDaemon()
Event Objects
class threading.Event
is_set()set()
clear()
Timer Objects
cancel()
Other Methods
threading.active_count()
threading.current_thread()threading.main_thread()
threading.get_ident()
threading.enumerate()
threading.settrace(func)threading.setprofile(func)
threading.stack_size([size])
threading.TIMEOUT_MAX
收藏
收藏
0 条评论
回复 删除
下一页