From: Trent Piepho Subject: Re: race conditions in alsa core Date: Mon, 24 Sep 2007 10:54:34 -0700 (PDT) Message-ID: References: <20070924183033.1045b7c2.krzysztof.h1@poczta.fm> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail1.sea5.speakeasy.net (mail1.sea5.speakeasy.net [69.17.117.3]) by alsa0.perex.cz (Postfix) with ESMTP id ECA13103843 for ; Mon, 24 Sep 2007 19:54:37 +0200 (CEST) In-Reply-To: <20070924183033.1045b7c2.krzysztof.h1@poczta.fm> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: Krzysztof Helt Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org On Mon, 24 Sep 2007, Krzysztof Helt wrote: > On Sun, 23 Sep 2007 03:14:47 -0700 (PDT) > Trent Piepho wrote: > > > My test program will call the HW_PARAMS ioctl twice from different threads > > running at the same time. The first call will ask for the maximum number of > > periods with minimum size, the second call for the minimum number of periods > > of maximum size. > > > > I cannot compile your test_hwparams.c. The local.h is missing. You must have the alsa-lib source to compile it, that is where local.h comes from. Headers for using the alsa devices directly aren't provided from any other place. gcc -I /path/to/alsa-lib/include -pthread test_hwparams.c