output/Thread: add "noexcept"
This commit is contained in:
parent
b0ea32f660
commit
051b8fbb31
|
@ -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))
|
||||
{
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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());
|
||||
|
||||
|
|
Loading…
Reference in New Issue