File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1454,7 +1454,7 @@ void CConnman::ThreadSocketHandler()
1454
1454
void CConnman::WakeMessageHandler ()
1455
1455
{
1456
1456
{
1457
- std::lock_guard<std::mutex> lock (mutexMsgProc);
1457
+ LOCK (mutexMsgProc);
1458
1458
fMsgProcWake = true ;
1459
1459
}
1460
1460
condMsgProc.notify_one ();
@@ -2057,7 +2057,7 @@ void CConnman::ThreadMessageHandler()
2057
2057
2058
2058
WAIT_LOCK (mutexMsgProc, lock);
2059
2059
if (!fMoreWork ) {
2060
- condMsgProc.wait_until (lock, std::chrono::steady_clock::now () + std::chrono::milliseconds (100 ), [this ] { return fMsgProcWake ; });
2060
+ condMsgProc.wait_until (lock, std::chrono::steady_clock::now () + std::chrono::milliseconds (100 ), [this ]() EXCLUSIVE_LOCKS_REQUIRED (mutexMsgProc) { return fMsgProcWake ; });
2061
2061
}
2062
2062
fMsgProcWake = false ;
2063
2063
}
@@ -2366,7 +2366,7 @@ static CNetCleanup instance_of_cnetcleanup;
2366
2366
void CConnman::Interrupt ()
2367
2367
{
2368
2368
{
2369
- std::lock_guard<std::mutex> lock (mutexMsgProc);
2369
+ LOCK (mutexMsgProc);
2370
2370
flagInterruptMsgProc = true ;
2371
2371
}
2372
2372
condMsgProc.notify_all ();
Original file line number Diff line number Diff line change @@ -451,7 +451,7 @@ class CConnman
451
451
const uint64_t nSeed0, nSeed1;
452
452
453
453
/* * flag for waking the message processor. */
454
- bool fMsgProcWake ;
454
+ bool fMsgProcWake GUARDED_BY (mutexMsgProc) ;
455
455
456
456
std::condition_variable condMsgProc;
457
457
Mutex mutexMsgProc;
You can’t perform that action at this time.
0 commit comments