Partition,Instance: add EmitIdle() documentation

This commit is contained in:
Max Kellermann 2020-01-20 12:50:48 +01:00
parent fd2b2cf0bc
commit 77271ebc1f
2 changed files with 11 additions and 0 deletions

View File

@ -143,6 +143,11 @@ struct Instance final
event_loop.Break();
}
/**
* Emit an "idle" event to all clients of all partitions.
*
* This method can be called from any thread.
*/
void EmitIdle(unsigned mask) noexcept {
idle_monitor.OrMask(mask);
}

View File

@ -80,6 +80,12 @@ struct Partition final : QueueListener, PlayerListener, MixerListener {
global_events.OrMask(mask);
}
/**
* Emit an "idle" event to all clients of this partition.
*
* This method is not thread-safe and may only be called from
* the main thread.
*/
void EmitIdle(unsigned mask) noexcept;
/**