From 2d6a9ec9351f974a19eeca4c2326ef9ff701ee37 Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Thu, 28 Jul 2016 17:32:20 +0000 Subject: Clean up vestigial remnants of locking primitives This finally removes the use of the Mutex and Condition classes. This is an intricate patch as the Mutex and Condition classes were tied together. Furthermore, many places had slightly differing uses of time values. Convert timeout values to relative everywhere to permit the use of std::chrono::duration, which is required for the use of std::condition_variable's timeout. Adjust all Condition and related Mutex classes over to std::{,recursive_}mutex and std::condition_variable. This change primarily comes at the cost of breaking the TracingMutex which was based around the Mutex class. It would be possible to write a wrapper to provide similar functionality, but that is beyond the scope of this change. llvm-svn: 277011 --- lldb/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lldb/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp') diff --git a/lldb/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp b/lldb/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp index 898677df616..7782f42d916 100644 --- a/lldb/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp +++ b/lldb/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp @@ -941,7 +941,7 @@ ProcessKDP::AsyncThread (void *arg) if (log) log->Printf ("ProcessKDP::AsyncThread (pid = %" PRIu64 ") listener.WaitForEvent (NULL, event_sp)...", pid); - if (listener_sp->WaitForEvent (NULL, event_sp)) + if (listener_sp->WaitForEvent(stsd::chrono::micrseconds(0), event_sp)) { uint32_t event_type = event_sp->GetType(); if (log) -- cgit v1.2.3