diff options
| author | Bent Bisballe Nyeng <deva@aasimon.org> | 2024-03-26 12:23:51 +0100 | 
|---|---|---|
| committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2024-03-26 12:23:51 +0100 | 
| commit | 6e461de50e73c0c957af73e5ee7a25f4d0293490 (patch) | |
| tree | 03916b36c1cf0e25239b8d6cc0cf013b0fcb3697 /src/audiocacheeventhandler.cc | |
| parent | 702e6907265035af031004f21ce09e3f62037fb4 (diff) | |
Make all mutex locks const, as per linter warning
Diffstat (limited to 'src/audiocacheeventhandler.cc')
| -rw-r--r-- | src/audiocacheeventhandler.cc | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/src/audiocacheeventhandler.cc b/src/audiocacheeventhandler.cc index e1b9868..06bbf6e 100644 --- a/src/audiocacheeventhandler.cc +++ b/src/audiocacheeventhandler.cc @@ -179,7 +179,7 @@ size_t AudioCacheEventHandler::getChunkSize() const  AudioCacheFile& AudioCacheEventHandler::openFile(const std::string& filename)  { -	std::lock_guard<std::mutex> lock(mutex); +	const std::lock_guard<std::mutex> lock(mutex);  	return files.getFile(filename);  } @@ -207,7 +207,7 @@ void AudioCacheEventHandler::handleLoadNextEvent(CacheEvent& cache_event)  void AudioCacheEventHandler::handleCloseEvent(CacheEvent& cache_event)  { -	std::lock_guard<std::mutex> lock(mutex); +	const std::lock_guard<std::mutex> lock(mutex);  	handleCloseCache(cache_event.id);  } @@ -272,7 +272,7 @@ void AudioCacheEventHandler::pushEvent(CacheEvent& cache_event)  	}  	{ -		std::lock_guard<std::mutex> lock(mutex); +		const std::lock_guard<std::mutex> lock(mutex);  		bool found = false; | 
