mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-16 19:56:31 +01:00
move TempoMap::write_copy() into .cc file instead of .h
This commit is contained in:
parent
2ec93062d9
commit
216945a89c
2 changed files with 7 additions and 1 deletions
|
|
@ -3112,6 +3112,12 @@ TempoMap::init ()
|
||||||
fetch ();
|
fetch ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
TempoMap::SharedPtr
|
||||||
|
TempoMap::write_copy()
|
||||||
|
{
|
||||||
|
return _map_mgr.write_copy();
|
||||||
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
TempoMap::update (TempoMap::SharedPtr m)
|
TempoMap::update (TempoMap::SharedPtr m)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -653,7 +653,7 @@ class LIBTEMPORAL_API TempoMap : public PBD::StatefulDestructible
|
||||||
static SharedPtr use() { assert (_tempo_map_p); return _tempo_map_p; }
|
static SharedPtr use() { assert (_tempo_map_p); return _tempo_map_p; }
|
||||||
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();
|
||||||
static void fetch_writable() { _tempo_map_p = write_copy(); }
|
static void fetch_writable() { _tempo_map_p = write_copy(); }
|
||||||
static int update (SharedPtr m);
|
static int update (SharedPtr m);
|
||||||
static void abort_update ();
|
static void abort_update ();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue