summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2016-01-22 11:38:23 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2016-01-22 11:38:23 +0100
commitbc7c91148f925b23899375b2b36d6344df33c3bb (patch)
treefe47182780970597073cdd7b1fc8012f7eae1b48 /src
parent2f5237be2263fe11576d57b838690011a7af5a00 (diff)
Rename lock
Diffstat (limited to 'src')
-rw-r--r--src/audiocacheeventhandler.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/audiocacheeventhandler.cc b/src/audiocacheeventhandler.cc
index 897f2fb..40e339d 100644
--- a/src/audiocacheeventhandler.cc
+++ b/src/audiocacheeventhandler.cc
@@ -191,7 +191,7 @@ size_t AudioCacheEventHandler::chunkSize()
AudioCacheFile& AudioCacheEventHandler::openFile(const std::string& filename)
{
- std::lock_guard<std::mutex> l(mutex);
+ std::lock_guard<std::mutex> lock(mutex);
return files.getFile(filename);
}
@@ -223,7 +223,7 @@ void AudioCacheEventHandler::handleCloseCache(cacheid_t cacheid)
{
auto& cache = idManager.getCache(cacheid);
{
- std::lock_guard<std::mutex> l(mutex);
+ std::lock_guard<std::mutex> lock(mutex);
files.releaseFile(cache.afile->getFilename());
}
@@ -285,7 +285,7 @@ void AudioCacheEventHandler::pushEvent(CacheEvent& event)
}
{
- std::lock_guard<std::mutex> l(mutex);
+ std::lock_guard<std::mutex> lock(mutex);
bool found = false;