Quote:
In "the real world" the processing that takes place when the lock is in place will only take a few tens of milliseconds, so I don't think this is actually going to be an issue until something is going seriously wrong already.
In this case, then, it seems to me that if you try to get a lock and timeout after a few seconds, you could just return a failure code and be done with it. If you can't get a lock within a reasonable amount of time then there are other issues to worry about.
_________________________
-Jeff
Rome did not create a great empire by having meetings; they did it by killing all those who opposed them.