Make RCU reader return a const pointer (omnibus commit)

This commit is contained in:
Robin Gareus 2023-04-07 23:33:13 +02:00
parent e9f71824a1
commit 295dbd8e1e
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
58 changed files with 745 additions and 776 deletions

View file

@ -9,7 +9,7 @@ function factory () return function ()
tm = nil
-- set initial tempo to 140, ramp to 120 over the first 4/4 bar, then continue at BPM 80
local tm = Temporal.TempoMap.fetch_writable ()
local tm = Temporal.TempoMap.write_copy ()
tm:set_tempo (Temporal.Tempo (140, 120, 4), Temporal.timepos_t (0))
tm:set_tempo (Temporal.Tempo (120, 80, 4), Temporal.timepos_t.from_ticks (Temporal.ticks_per_beat * 4))
tm:set_tempo (Temporal.Tempo (80, 80, 4), Temporal.timepos_t.from_ticks (Temporal.ticks_per_beat * 4))
@ -21,10 +21,10 @@ function factory () return function ()
tm = nil
-- Abort Edit example
-- after every call to Temporal.TempoMap.fetch_writable ()
-- after every call to Temporal.TempoMap.write_copy ()
-- there must be a matching call to
-- Temporal.TempoMap.update() or Temporal.TempoMap.abort_update()
Temporal.TempoMap.fetch_writable()
Temporal.TempoMap.write_copy()
Temporal.TempoMap.abort_update()
end end