player/Thread: hold mutex while calling SongBorder()

Eliminates unnecessary mutex locks.
This commit is contained in:
Max Kellermann
2018-01-03 17:12:21 +01:00
parent 1954e94de2
commit ec113420f1
2 changed files with 14 additions and 18 deletions

View File

@@ -414,11 +414,6 @@ public:
return border_pause;
}
bool LockApplyBorderPause() noexcept {
const std::lock_guard<Mutex> lock(mutex);
return ApplyBorderPause();
}
void Kill() noexcept;
gcc_pure