From mboxrd@z Thu Jan 1 00:00:00 1970 From: Clemens Ladisch Subject: Re: Races in alsa-lib with threads Date: Tue, 13 Nov 2012 21:23:36 +0100 Message-ID: <50A2AC48.7080206@ladisch.de> References: <509FD3BE.7090504@perex.cz> <5175C6FEA820754B902FF6873E9285B00C985240@039-SN2MPN1-021.039d.mgd.msft.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by alsa0.perex.cz (Postfix) with ESMTP id 52B3F2615EB for ; Tue, 13 Nov 2012 21:23:51 +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: Trent Piepho Cc: Takashi Iwai , "alsa-devel@alsa-project.org" , Krakora Robert-B42341 List-Id: alsa-devel@alsa-project.org Trent Piepho wrote: > Consider snd_pcm_writei(), most of the time is usually spent blocked > waiting for a period to elapse. It is perfectly ok to call > snd_pcm_delay() during this time. But if one isn't allowed to make > any other pcm calls during snd_pcm_writei() then this can't be done. Then use non-blocking mode. Blocking mode is suitable only for applications that do not want to access the device while waiting. Regards, Clemens