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