Added support for std::mutex in folly Deterministic Schedule
authorMaged Michael <magedmichael@fb.com>
Fri, 10 Jun 2016 15:53:32 +0000 (08:53 -0700)
committerFacebook Github Bot 8 <facebook-github-bot-8-bot@fb.com>
Fri, 10 Jun 2016 16:08:22 +0000 (09:08 -0700)
commit95c95660338c5a24fdf1a27a4da2f5fe4d12359a
tree535f2e1cf9146e116a2483a925bcc638d521217c
parent500f3598bb9e351b0aaf86a68c009ce8b815b979
Added support for std::mutex in folly Deterministic Schedule

Summary:
Added the class `DeterministicMutex`, a wrapper for `std::mutex`, in `folly/test/DeterministicSchedule.h`. Added a test to `folly/test/DeterministicScheduleTest.cpp` to test the correct behavior of `DeterministicMutex` functions and that deterministic schedule is able to detect race conditions that involve `DeterministicMutex`.

Note: Bootcamp task

Reviewed By: djwatson

Differential Revision: D3412579

fbshipit-source-id: c12861c4ec1cfeadcef027be4513e8e4cb7e0176
folly/test/DeterministicSchedule.h
folly/test/DeterministicScheduleTest.cpp