Igor Canadi ddafceb6c2 Better port::Mutex::AssertHeld() and AssertNotHeld()
Summary:
Using ThreadLocalPtr as a flag to determine if a mutex is locked or not enables us to implement AssertNotHeld(). It also makes AssertHeld() actually correct.

I had to remove port::Mutex as a dependency for util/thread_local.h, but that's fine since we can just use std::mutex :)

Test Plan: make check

Reviewers: ljin, dhruba, haobo, sdong, yhchiang

Reviewed By: ljin

CC: leveldb

Differential Revision: https://reviews.facebook.net/D18171
2014-04-22 17:26:21 -07:00
..
2014-01-30 22:10:10 -08:00
2014-04-15 13:39:26 -07:00
2014-04-15 13:39:26 -07:00
2014-04-15 13:39:26 -07:00
2014-04-09 21:17:14 -07:00
2014-04-04 14:03:19 -07:00
2014-04-21 17:45:04 -07:00
2014-04-15 13:39:26 -07:00
2014-04-15 13:39:26 -07:00
2014-04-15 13:39:26 -07:00
2014-04-15 13:39:26 -07:00
2014-03-03 21:11:49 -08:00
2014-01-17 12:46:06 -08:00
2014-01-17 12:46:06 -08:00
2014-04-15 13:39:26 -07:00
2014-04-15 13:39:26 -07:00
2014-03-21 15:32:48 -07:00
2014-04-15 13:39:26 -07:00
2014-04-15 13:39:26 -07:00
2014-04-08 10:58:07 -07:00
2014-04-08 10:58:07 -07:00
2014-04-09 21:17:14 -07:00
2014-02-12 11:42:54 -08:00
2013-12-03 12:42:15 -08:00
2014-01-17 12:46:06 -08:00
2014-04-09 21:17:14 -07:00
2014-04-09 21:17:14 -07:00
2014-04-17 14:29:28 -07:00
2014-04-15 13:39:26 -07:00