diff options
Diffstat (limited to 'src/audiofile.cc')
-rw-r--r-- | src/audiofile.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/audiofile.cc b/src/audiofile.cc index 93b2e4f..3fe854b 100644 --- a/src/audiofile.cc +++ b/src/audiofile.cc @@ -62,7 +62,7 @@ bool AudioFile::isValid() const void AudioFile::unload() { // Make sure we don't unload the object while loading it... - MutexAutolock l(mutex); + std::lock_guard<std::mutex> guard(mutex); is_loaded = false; @@ -77,7 +77,7 @@ void AudioFile::unload() void AudioFile::load(std::size_t sample_limit) { // Make sure we don't unload the object while loading it... - MutexAutolock l(mutex); + std::lock_guard<std::mutex> guard(mutex); if(this->data) // already loaded { |