Commit 6fec2698 authored by Max Kellermann's avatar Max Kellermann

output/SharedPipeConsumer: add thread-safety documentation

parent b6004b68
......@@ -30,6 +30,11 @@ class MusicPipe;
/**
* A utility class which helps with consuming data from a #MusicPipe.
*
* This class is intentionally not thread-safe. Since it is designed
* to be called from two distinct threads (PlayerThread=feeder and
* OutputThread=consumer), all methods must be called with a mutex
* locked to serialize access. Usually, this is #AudioOutput::mutex.
*/
class SharedPipeConsumer {
/**
......
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