DescriptionDisallow recursive locking via the Lock class
Change contract so that Posix locks (which deadlock on
attempts by a single thread to acquire a mutex recursively)
and windows critical sections can both be used to implement
the Lock() cass, by disallowing recursive locking.
In DEBUG mode only, we watch for (now) illegal use of
recursive locking.
Also remove a pile of cruft that has built up in this file
as various folks have re-re-refactored and moved around
code.
Note that Window's condition variable implementation still
uses the AutoUnlock() helper class, but now the
implementation (sans nested locking) is very trivial.
Posix will probably use their own CV implementation.
r=mbelshe
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=3105
Patch Set 1 #Patch Set 2 : '' #Patch Set 3 : '' #Patch Set 4 : '' #Patch Set 5 : '' #Patch Set 6 : '' #Messages
Total messages: 7 (0 generated)
|