13
0

libtemporal: fix TempoMap::fetch_writable() so that it actually does what its name describes

This commit is contained in:
Paul Davis 2020-12-31 12:20:43 -07:00
parent eaedcd79d4
commit 6a9330b2b0

View File

@ -644,7 +644,7 @@ class LIBTEMPORAL_API TempoMap : public PBD::StatefulDestructible
static SharedPtr fetch() { update_thread_tempo_map(); return use(); } static SharedPtr fetch() { update_thread_tempo_map(); return use(); }
static SharedPtr write_copy() { return _map_mgr.write_copy(); } static SharedPtr write_copy() { return _map_mgr.write_copy(); }
static void fetch_writable() { _tempo_map_p = fetch(); } static void fetch_writable() { _tempo_map_p = write_copy(); }
static void update (SharedPtr m) { _map_mgr.update (m); _tempo_map_p = _map_mgr.reader(); } static void update (SharedPtr m) { _map_mgr.update (m); _tempo_map_p = _map_mgr.reader(); }
/* and now on with the rest of the show ... */ /* and now on with the rest of the show ... */