mirror of
https://github.com/chromium/crashpad.git
synced 2024-12-31 01:43:03 +08:00
e89ba0d1d6
Semaphore is implemented with a mutex and condition variable. When a semaphore is used in TimerTest, Run() acquires a lock to guard its CV but may be interrupted by the signal handler before releasing the lock which results in a hang when Signal(), called from the signal handler, also needs to acquire the lock. Bug: chromium:1050178 Change-Id: I0d7ef65bd159ee2de9258ba24537f9470f4c621d Reviewed-on: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/2318554 Reviewed-by: Mark Mentovai <mark@chromium.org> Commit-Queue: Joshua Peraza <jperaza@chromium.org>