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
@ -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…
Reference in New Issue
Block a user