33
35
lock may be acquired multiple times by the same thread, as long as it's
34
36
released an equal number of times. unlike threading.Lock, this lock can
35
37
be used across processes.
37
39
this uses os.open(O_CREAT|O_EXCL), which apparently works even on windows,
38
40
but will not work over NFS, if anyone still uses that. so don't put the
39
41
cache folder on an NFS server...