costan 73d5834ece Rework threading in env_posix.cc.
This commit replaces the use of pthreads in the POSIX port with std::thread
and port::Mutex + port::CondVar. This is intended to simplify porting
the env to a different platform.

The indirect use of pthreads in PosixLogger is replaced with
std:🧵:id(), based on an approach prototyped by @cmumfordx@.

The pthreads dependency in CMakeFiles is not removed, because some C++
standard library implementations must be linked against pthreads for
std::thread use. Figuring out this dependency is left for future work.

Switching away from pthreads also fixes
https://github.com/google/leveldb/issues/381

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=212478311
2018-09-11 11:02:14 -07:00
..
2013-12-10 10:36:31 -08:00
2011-10-31 17:22:06 +00:00
2018-09-11 11:02:14 -07:00
2018-04-10 16:26:43 -07:00
2012-04-17 08:36:46 -07:00
2014-09-16 14:19:52 -07:00
2014-09-16 14:19:52 -07:00
2011-10-31 17:22:06 +00:00
2011-10-31 17:22:06 +00:00
2012-10-12 11:53:12 -07:00
2013-08-21 11:12:47 -07:00
2018-04-23 16:22:30 -07:00