File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
lldb/tools/debugserver/source Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -820,7 +820,7 @@ rnb_err_t RNBRemote::GetPacketPayload(std::string &return_packet) {
820
820
// (uint32_t)m_comm.Timer().ElapsedMicroSeconds(true), __FUNCTION__);
821
821
822
822
{
823
- PThreadMutex::Locker locker (m_mutex);
823
+ std::lock_guard<std::mutex> guard (m_mutex);
824
824
if (m_rx_packets.empty ()) {
825
825
// Only reset the remote command available event if we have no more
826
826
// packets
@@ -1052,7 +1052,7 @@ void RNBRemote::CommDataReceived(const std::string &new_data) {
1052
1052
// (uint32_t)m_comm.Timer().ElapsedMicroSeconds(true), __FUNCTION__);
1053
1053
1054
1054
// Put the packet data into the buffer in a thread safe fashion
1055
- PThreadMutex::Locker locker (m_mutex);
1055
+ std::lock_guard<std::mutex> guard (m_mutex);
1056
1056
1057
1057
std::string data;
1058
1058
// See if we have any left over data from a previous call to this
Original file line number Diff line number Diff line change 14
14
#define LLDB_TOOLS_DEBUGSERVER_SOURCE_RNBREMOTE_H
15
15
16
16
#include " DNB.h"
17
- #include " PThreadMutex.h"
18
17
#include " RNBContext.h"
19
18
#include " RNBDefs.h"
20
19
#include " RNBSocket.h"
25
24
26
25
class RNBSocket ;
27
26
class RNBContext ;
28
- class PThreadEvents ;
29
27
30
28
enum event_loop_mode { debug_nub, gdb_remote_protocol, done };
31
29
@@ -379,7 +377,7 @@ class RNBRemote {
379
377
std::string m_arch;
380
378
nub_thread_t m_continue_thread; // thread to continue; 0 for any, -1 for all
381
379
nub_thread_t m_thread; // thread for other ops; 0 for any, -1 for all
382
- PThreadMutex m_mutex; // Mutex that protects
380
+ std::mutex m_mutex; // Mutex that protects
383
381
DispatchQueueOffsets m_dispatch_queue_offsets;
384
382
nub_addr_t m_dispatch_queue_offsets_addr;
385
383
uint32_t m_qSymbol_index;
You can’t perform that action at this time.
0 commit comments