py: threading
2017-11-03 20:26:09 10 举报
AI智能生成
python threading Mindmap
作者其他创作
大纲/内容
Semaphore Objects
class
class
threading.Semaphore(value=1)class
threading.BoundedSemaphore(value=1)acquire(blocking=True, timeout=None)release()Lock/RLock Objects
class
threading.Lock
class threading.RLock
acquire(blocking=True, timeout=-1)release()Condition Objects
class
threading.Condition(lock=None) acquire(*args)release()wait(timeout=None)wait_for(predicate, timeout=None)notify(n=1)notify_all()Barrier Objects
class
threading.Barrier(parties, action=None, timeout=None) wait(timeout=None) reset()
abort() parties
n_waiting
broken
n_waiting
broken
exception threading.BrokenBarrierError
Thread Objects class
run()
threading.Thread(group=None, target=None, name=None, args=(), kwargs={}, *, daemon=None)start()run()
join(timeout=None) ident
is_alive() Event Objects
class threading.Event
is_set()
set() clear()
wait(timeout=None) Timer Objects
class threading.Timer(interval, function, args=None, kwargs=None)
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 条评论
下一页