From adacaf38372b5e910c405c2b31d0e7882a79abd3 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 27 Nov 2020 19:16:41 -0700 Subject: [PATCH] extend TempoMap API to assist with drag-RCU --- libs/temporal/temporal/tempo.h | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/temporal/temporal/tempo.h b/libs/temporal/temporal/tempo.h index 1bbcf7efcd..50e4b5e39a 100644 --- a/libs/temporal/temporal/tempo.h +++ b/libs/temporal/temporal/tempo.h @@ -624,6 +624,7 @@ class LIBTEMPORAL_API TempoMap : public PBD::StatefulDestructible static SharedPtr fetch() { update_thread_tempo_map(); return use(); } static SharedPtr write_copy() { return _map_mgr.write_copy(); } + static void fetch_writable() { _tempo_map_p = fetch(); } static void update (SharedPtr m) { _map_mgr.update (m); _tempo_map_p = _map_mgr.reader(); } /* and now on with the rest of the show ... */