From a6e5873443e4a540b0ef7135c5c4082f03b5b50d Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 26 Apr 2018 12:16:18 +0200 Subject: [PATCH] output/alsa: thread-safety documentation for attribute "active" --- src/output/plugins/AlsaOutputPlugin.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/output/plugins/AlsaOutputPlugin.cxx b/src/output/plugins/AlsaOutputPlugin.cxx index 100643c4f..b38fd36c0 100644 --- a/src/output/plugins/AlsaOutputPlugin.cxx +++ b/src/output/plugins/AlsaOutputPlugin.cxx @@ -122,6 +122,9 @@ class AlsaOutput final /** * After Open(), has this output been activated by a Play() * command? + * + * This attribute is not thread-safe. It is only used by the + * client thread (the thread which calls AudioOutput public methods). */ bool active;