From edfe9438ca54274815f076fc21beb790df5aa0a2 Mon Sep 17 00:00:00 2001 From: Antoine Riard Date: Fri, 19 Apr 2019 07:48:31 -0400 Subject: [PATCH] Add WITH_LOCK macro: run code while locking a mutex Results from ryanofksy suggestion on isPotentialTip/ waitForNotifications refactoring --- src/sync.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/sync.h b/src/sync.h index 3857eda56..2667fb52f 100644 --- a/src/sync.h +++ b/src/sync.h @@ -198,6 +198,16 @@ using DebugLock = UniqueLock