output/Thread: add "noexcept"

This commit is contained in:
Max Kellermann 2018-01-04 09:54:35 +01:00
parent b0ea32f660
commit 051b8fbb31
3 changed files with 7 additions and 7 deletions

View File

@ -38,7 +38,7 @@ static constexpr PeriodClock::Duration REOPEN_AFTER = std::chrono::seconds(10);
struct notify audio_output_client_notify;
AudioOutputControl::AudioOutputControl(FilteredAudioOutput *_output,
AudioOutputClient &_client)
AudioOutputClient &_client) noexcept
:output(_output), client(_client),
thread(BIND_THIS_METHOD(Task))
{

View File

@ -212,10 +212,10 @@ public:
mutable Mutex mutex;
AudioOutputControl(FilteredAudioOutput *_output,
AudioOutputClient &_client);
AudioOutputClient &_client) noexcept;
#ifndef NDEBUG
~AudioOutputControl() {
~AudioOutputControl() noexcept {
assert(!fail_timer.IsDefined());
assert(!thread.IsDefined());
assert(output == nullptr);
@ -490,7 +490,7 @@ private:
/**
* Caller must lock the mutex.
*/
bool FillSourceOrClose();
bool FillSourceOrClose() noexcept;
/**
* Caller must lock the mutex.
@ -528,7 +528,7 @@ private:
/**
* The OutputThread.
*/
void Task();
void Task() noexcept;
};
#endif

View File

@ -226,7 +226,7 @@ AudioOutputControl::WaitForDelay() noexcept
}
bool
AudioOutputControl::FillSourceOrClose()
AudioOutputControl::FillSourceOrClose() noexcept
try {
return source.Fill(mutex);
} catch (...) {
@ -402,7 +402,7 @@ AudioOutputControl::InternalDrain() noexcept
}
void
AudioOutputControl::Task()
AudioOutputControl::Task() noexcept
{
FormatThreadName("output:%s", GetName());