remove useless lock
rbuf allocation/use is protected by process_lock
This commit is contained in:
parent
35bea337d2
commit
3c8b506ace
@ -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;
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user