Commit 77271ebc authored by Max Kellermann's avatar Max Kellermann

Partition,Instance: add EmitIdle() documentation

parent fd2b2cf0
...@@ -143,6 +143,11 @@ struct Instance final ...@@ -143,6 +143,11 @@ struct Instance final
event_loop.Break(); 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 { void EmitIdle(unsigned mask) noexcept {
idle_monitor.OrMask(mask); idle_monitor.OrMask(mask);
} }
......
...@@ -80,6 +80,12 @@ struct Partition final : QueueListener, PlayerListener, MixerListener { ...@@ -80,6 +80,12 @@ struct Partition final : QueueListener, PlayerListener, MixerListener {
global_events.OrMask(mask); 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; void EmitIdle(unsigned mask) noexcept;
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment