13
0

remove useless lock

rbuf allocation/use is protected by process_lock
This commit is contained in:
Paul Davis 2019-12-12 11:31:43 -07:00
parent 35bea337d2
commit 3c8b506ace
2 changed files with 0 additions and 5 deletions

View File

@ -115,8 +115,6 @@ public:
static void reset_loop_declick (Location*, samplecnt_t sample_rate);
static void alloc_loop_declick (samplecnt_t sample_rate);
Glib::Threads::Mutex rbuf_lock;
protected:
friend class Track;
friend class MidiTrack;

View File

@ -78,8 +78,6 @@ DiskReader::~DiskReader ()
void
DiskReader::ReaderChannelInfo::resize (samplecnt_t bufsize)
{
/* caller must hold rbuf lock */
delete rbuf; rbuf = 0;
rbuf = new PlaybackBuffer<Sample> (bufsize);
@ -225,7 +223,6 @@ DiskReader::buffer_load () const
void
DiskReader::adjust_buffering ()
{
Glib::Threads::Mutex::Lock lm (rbuf_lock);
boost::shared_ptr<ChannelList> c = channels.reader();
for (ChannelList::iterator chan = c->begin(); chan != c->end(); ++chan) {