Subj : Re: Improving read-write lock To : comp.programming.threads From : Joe Seigh Date : Thu Feb 24 2005 12:59 pm On Thu, 24 Feb 2005 18:23:18 +0100, Marcin 'Qrczak' Kowalczyk wrote: > "Joe Seigh" writes: > >> Given that there seem to be an awful lot of programmers that think that >> locks should be unlocked on exceptions, I doubt sensible implementations >> are the rule. > > Why do you think leaving the lock locked would be a better default? > You need to explicitly ensure the shared data is in a valid state. If so than you can manually reset the lock. Otherwise it's better to leave the lock locked and let everything hang. -- Joe Seigh .