nightlyone/lockfile

non-recursive lock

Closed this issue · 0 comments

I currently have a use-case where I need a non-recursive lock so that two subsequent lock.TryLock()s wouldn't succeed. Would you accept a patch extending the semantics? I imagine a boolean switch in Lockfile that can be used when comparing the PID of the lock owner and the current one.