Added a debug method AssertAcquired() that compiles to nothing in non-debug builds.  In debug builds, the method will DCHECK if the
current thread does not hold the lock.

I also removed a class that was not being used (AutoLockImpl) which seems like someone just copied the Lock.h file and blindly added
an Impl for the AutoLock class.

Thre are places in my code where I want to use the AutoUnlock class.  I can't see why it was restricted to use by the condition variable
class only, so I just made it into a regular class with no restrictions.

I noticed that JamesR posted a CL about a month ago that made AutoUnlock a public class, but it was never committed, so I added him to this CL for review too.
Review URL: http://codereview.chromium.org/48109

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12037 0039d316-1c4b-4281-b951-d872f2087c98


CrOS-Libchrome-Original-Commit: c9d869c9d91ccb7ad8f061a93e7265bcddd85b47
2 files changed
tree: a7d9cfc24527dfff2fed11dadd9f015282af9bb6
  1. base/
  2. build/
  3. testing/