output/Thread: move code to InternalCloseOutput()

This commit is contained in:
Max Kellermann
2017-08-07 17:35:43 +02:00
parent 4580c685f1
commit 3197c0fd7d
2 changed files with 19 additions and 6 deletions
+6
View File
@@ -429,6 +429,12 @@ private:
void InternalOpen(AudioFormat audio_format,
const MusicPipe &pipe) noexcept;
/**
* Runs inside the OutputThread.
* Caller must lock the mutex.
*/
void InternalCloseOutput(bool drain) noexcept;
/**
* Runs inside the OutputThread.
* Caller must lock the mutex.