13
0

Fix deadlock and remove debug message

get_extent() takes a RegionReadLock, but ::partition_internal
already holds a RegionWriteLock (use ::_get_extent)
This commit is contained in:
Robin Gareus 2023-06-08 21:32:53 +02:00
parent 49aa046824
commit d0f5fdb224
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -1177,7 +1177,7 @@ Playlist::partition_internal (timepos_t const & start, timepos_t const & end, bo
/* keep track of any dead space at end (for pasting into Ripple or RippleAll mode) */
const timecnt_t wanted_length = start.distance (end);
_end_space = wanted_length - _get_extent().first.distance (_get_extent().second);
cout << "PL: " << name() << " END SPACE: " << _end_space << " WANTED LEN: " << wanted_length << " EXT: " << _get_extent().first << " to " << get_extent().second << "\n";
// cout << "PL: " << name() << " END SPACE: " << _end_space << " WANTED LEN: " << wanted_length << " EXT: " << _get_extent().first << " to " << _get_extent().second << "\n";
}
std::shared_ptr<Playlist>