temporal: fix comment explaining when/how TempoMap::set() can be used
This commit is contained in:
parent
a1e9dfb672
commit
f17a516cef
@ -705,7 +705,12 @@ class /*LIBTEMPORAL_API*/ TempoMap : public PBD::StatefulDestructible
|
||||
*/
|
||||
|
||||
LIBTEMPORAL_API static SharedPtr read() { return _map_mgr.reader(); }
|
||||
LIBTEMPORAL_API static void set (SharedPtr new_map) { _tempo_map_p = new_map; /* new_map must have been fetched with read() */ }
|
||||
|
||||
/* Because WritableSharedPtr can be implicitly cast to SharedPtr, this
|
||||
* can be used on either a write_copy()'ed map, or one obtained via the
|
||||
* RCU reader() method.
|
||||
*/
|
||||
LIBTEMPORAL_API static void set (SharedPtr new_map) { _tempo_map_p = new_map; }
|
||||
|
||||
/* API for typical tempo map changes */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user