Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 17 lines (13 sloc) 0.248 kb
#!/usr/bin/python
from multiprocessing import Semaphore
sem = Semaphore()
i = 0
while True:
i += 1
if i % 10000 == 0:
print sem.get_value()
try:
sem.release()
except:
print `sem.get_value()`
raise
Jump to Line
Something went wrong with that request. Please try again.