From: Takashi Iwai Subject: Re: [PATCH - IOPLUG DRAIN 0/2] Date: Thu, 22 Mar 2018 15:55:28 +0100 Message-ID: References: <1521726537-7651-1-git-send-email-twischer@de.adit-jv.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id 22DFB26739E for ; Thu, 22 Mar 2018 15:55:29 +0100 (CET) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: "Wischer, Timo (ADITG/ESB)" Cc: "alsa-devel@alsa-project.org" List-Id: alsa-devel@alsa-project.org On Thu, 22 Mar 2018 15:50:35 +0100, Wischer, Timo (ADITG/ESB) wrote: > > Hi Takashi, > > but in this case each IO plugin has to have its own thread which checks for io->state == DRAINING to start draining. > For example the pulse plugin do not have an own thread. I don't understand. The pulse plugin calls pa_stream_drain(), and pulse_wait_operation() to wait until the drain finishes. What does it have to do with threading? Takashi