13
0

comment code added in previous commit

This commit is contained in:
Paul Davis 2020-11-27 16:26:19 -07:00
parent 44ff395ec8
commit cfac6ad254

View File

@ -2868,9 +2868,13 @@ TempoMap::twist_tempi (TempoSection* ts, const Tempo& bpm, const framepos_t fram
void void
TempoMap::MementoBinder::set_state (XMLNode const & node, int version) const TempoMap::MementoBinder::set_state (XMLNode const & node, int version) const
{ {
/* fetch a writable copy of this thread's tempo map */
TempoMap::SharedPtr map (write_copy()); TempoMap::SharedPtr map (write_copy());
/* change the state of the copy */
map->set_state (node, version); map->set_state (node, version);
/* do the update step of RCU */
update (map); update (map);
/* now update this thread's view of the current tempo map */
fetch (); fetch ();
} }