From 7980ea4d27e84edef8ec92559fc0a4b61acd67f3 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Sun, 13 Jun 2021 07:58:45 -0600 Subject: [PATCH] add a method to SerializedRCUManager to release the lock when no update is required --- libs/pbd/pbd/rcu.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libs/pbd/pbd/rcu.h b/libs/pbd/pbd/rcu.h index 86cfcb1131..cdad78325c 100644 --- a/libs/pbd/pbd/rcu.h +++ b/libs/pbd/pbd/rcu.h @@ -235,6 +235,13 @@ public: return ret; } + void no_update () { + /* just releases the lock, in the event that no changes are + made to a write copy. + */ + _lock.unlock (); + } + void flush () { Glib::Threads::Mutex::Lock lm (_lock);