Advertisement
rfmonk

threading_lock_acquire.py

Feb 6th, 2014
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.12 KB | None | 0 0
  1. import threading
  2.  
  3. lock = threading.Lock()
  4.  
  5. print 'First try    :', lock.acquire()
  6. print 'Second try   :', lock.acquire(0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement