Robustness of InterProcessLock?

Hi,
I have a small question regarding the InterProcessLock functionality. Is it mature and robust on the supported desktop OS’ (Win, OSX, Linux)? What happens if an app crashes while having a lock? Is it automatically released by the OS?

Oh, by the way, will the IPL also lock across threads in the same process?

Thanks!

Sorry about not finishing the post before posting it. :oops: I forgot to ask about the performance as well. It’s difficult for me to figure out how quick a lock/unlock is under posix.

It’s based on file-locking in posix, and win32 provides a special OS way to do it.

So it should be pretty robust, but certainly don’t expect it to be fast!

Alright. That’s what I expected. Thanks Jules!

Just looking at this problem myself. I’m not sure it’s totally safe for the lock identifier to have slashes in, maybe it should gain an assert? I think trying to get a lock with a name of “fred/bloggs” may later break an attempt to get a lock for “fred”.