mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
add a _locked variant for TempoMap::dump()
This commit is contained in:
parent
cba53a2023
commit
73d0a849b8
2 changed files with 11 additions and 3 deletions
11
nutemp/t.cc
11
nutemp/t.cc
|
|
@ -480,7 +480,7 @@ TempoMap::rebuild_locked (superclock_t limit)
|
|||
*/
|
||||
|
||||
cerr << "POST-SORT\n";
|
||||
dump (cerr);
|
||||
dump_locked (cerr);
|
||||
|
||||
prev = _points.end();
|
||||
|
||||
|
|
@ -1033,10 +1033,17 @@ TempoMap::set_sample_rate (framecnt_t new_sr)
|
|||
i->map_reset_set_sclock_for_sr_change (llrint (ratio * i->sclock()));
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
TempoMap::dump (std::ostream& ostr)
|
||||
{
|
||||
Glib::Threads::RWLock::ReaderLock lm (_lock);
|
||||
dump_locked (ostr);
|
||||
}
|
||||
|
||||
void
|
||||
TempoMap::dump (std::ostream& ostr)
|
||||
{
|
||||
//Glib::Threads::RWLock::ReaderLock lm (_lock);
|
||||
ostr << "\n\n------------\n";
|
||||
for (TempoMapPoints::iterator i = _points.begin(); i != _points.end(); ++i) {
|
||||
ostr << *i << std::endl;
|
||||
|
|
|
|||
|
|
@ -391,6 +391,7 @@ class LIBARDOUR_API TempoMap
|
|||
void move_explicit_to (TempoMapPoints::iterator, superclock_t destination);
|
||||
|
||||
void rebuild_locked (superclock_t limit);
|
||||
void dump_locked (std::ostream&);
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue