diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2017-05-06 15:41:43 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2017-05-06 15:41:43 +0200 |
commit | b7b5b9ee2a9d6cefe9b83589122cedb89c22279c (patch) | |
tree | b7953590423e616d1f61a8ae9a4a2a4ca154d9f5 /src/audiofile.cc | |
parent | 305bc5c31dde06afb3d867abd1b461a98c868a74 (diff) |
Remove old (obsolete) Mutex class and replace all uses with std::mutex.
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 { |