From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: Races in alsa-lib with threads Date: Tue, 13 Nov 2012 08:30:57 +0100 Message-ID: References: <509FD3BE.7090504@perex.cz> 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 (cantor2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id 2C51326031A for ; Tue, 13 Nov 2012 08:31:00 +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: alsa-devel@alsa-project.org, Rob Krakora List-Id: alsa-devel@alsa-project.org At Tue, 13 Nov 2012 02:14:08 -0500, Trent Piepho wrote: > > On Tue, Nov 13, 2012 at 1:32 AM, Takashi Iwai wrote: > > At Mon, 12 Nov 2012 19:40:42 +0000 (UTC), > > Rob Krakora wrote: > >> Would you be able to point me the the ALSA documentation that indicates the > >> stipulations on handle usage using multiple threads? I cannot find it. > > > > Think other way round: > > The fact that it isn't documented means it's not safe to use in that > > way :) > > > The introduction on the alsa-project home page says, "SMP and > thread-safe design. " Some people might misunderstand what > thread-safe means. Maybe some clarification could be added. > "Different streams are SMP and thread-safe (calls for the same stream > must be serialized)." Yeah this should be corrected. SMP things are just about the kernel side at that time. It's a Wiki, feel free to correct / improve the text. Takashi