diff options
author | Max Kellermann <max@musicpd.org> | 2017-01-03 07:11:57 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2017-01-03 07:11:57 +0100 |
commit | 2e182e84c35c73f8d5b4f135ffa3550b7e70f66f (patch) | |
tree | 806ec01525f834132c46e6392714900ec75eada2 /src/neighbor | |
parent | a42021655c3218c64272b648438197247ec7f6a9 (diff) |
thread/Mutex: remove ScopeLock, use std::lock_guard directly
Diffstat (limited to 'src/neighbor')
-rw-r--r-- | src/neighbor/plugins/SmbclientNeighborPlugin.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/neighbor/plugins/SmbclientNeighborPlugin.cxx b/src/neighbor/plugins/SmbclientNeighborPlugin.cxx index 95e4dd3fc..ac5731a46 100644 --- a/src/neighbor/plugins/SmbclientNeighborPlugin.cxx +++ b/src/neighbor/plugins/SmbclientNeighborPlugin.cxx @@ -103,7 +103,7 @@ SmbclientNeighborExplorer::Close() NeighborExplorer::List SmbclientNeighborExplorer::GetList() const { - const ScopeLock protect(mutex); + const std::lock_guard<Mutex> protect(mutex); /* List list; for (const auto &i : servers) @@ -172,7 +172,7 @@ static NeighborExplorer::List DetectServers() { NeighborExplorer::List list; - const ScopeLock protect(smbclient_mutex); + const std::lock_guard<Mutex> protect(smbclient_mutex); ReadServers(list, "smb://"); return list; } |