mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-04 12:45:45 +01:00
Temporal: add TempoMap::use() which returns the per-thread ptr-to-tempo-map without updating the pointer
This commit is contained in:
parent
7446de72b1
commit
b1271a491e
1 changed files with 2 additions and 1 deletions
|
|
@ -612,7 +612,8 @@ class LIBTEMPORAL_API TempoMap : public PBD::StatefulDestructible
|
|||
static SerializedRCUManager<TempoMap> _map_mgr;
|
||||
public:
|
||||
static void update_thread_tempo_map() { SharedPtr p = _map_mgr.reader(); _tempo_map_p.set (&p); }
|
||||
static SharedPtr fetch() { update_thread_tempo_map(); SharedPtr p = *_tempo_map_p.get(); return p; }
|
||||
static SharedPtr use() { return *_tempo_map_p.get(); }
|
||||
static SharedPtr fetch() { update_thread_tempo_map(); return use(); }
|
||||
|
||||
/* and now on with the rest of the show ... */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue