comment code added in previous commit
This commit is contained in:
parent
44ff395ec8
commit
cfac6ad254
|
@ -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 ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user