From 901f593af5cc018d74f4ce45daa59a4e244dd119 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 10 Feb 2021 09:30:43 -0700 Subject: [PATCH] avoid unnecessary extra fetch of thread-local tempo map after undo/redo --- libs/temporal/tempo.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libs/temporal/tempo.cc b/libs/temporal/tempo.cc index 6011ccdde4..e994b9630f 100644 --- a/libs/temporal/tempo.cc +++ b/libs/temporal/tempo.cc @@ -3057,10 +3057,8 @@ TempoMap::MementoBinder::set_state (XMLNode const & node, int version) const TempoMap::SharedPtr map (write_copy()); /* change the state of the copy */ map->set_state (node, version); - /* do the update step of RCU */ + /* do the update step of RCU. This will also update this thread's map pointer */ update (map); - /* now update this thread's view of the current tempo map */ - fetch (); } void