From owner-freebsd-usb@FreeBSD.ORG Fri Jul 23 17:37:46 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7B31F1065674 for ; Fri, 23 Jul 2010 17:37:46 +0000 (UTC) (envelope-from peerst@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 0EECB8FC0A for ; Fri, 23 Jul 2010 17:37:45 +0000 (UTC) Received: by wwe15 with SMTP id 15so4504329wwe.31 for ; Fri, 23 Jul 2010 10:37:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=3f7sWtchwqaEJI3mkHTl6M6SJKBac1Wc4zl0tY0AW2c=; b=DgqKjFLkBOClhULjmOhcy4h3ydQrcCrHxXHj5QQy/V0gFWyAhjqSaRoiifF6tskdaC P+I7QT1eKaMAIghNUjOlpAz/FGihkoB+DmWJuPoAYjKtQy/Lv2Lhlu61O2df8Z1U74mU wol8nwp3dwPuRTftHQ4TDBJ1DuiFjB5+AVN+4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=H/AWURw6EN//idHpA9cnc27OaKmTWR/44sLJ0kF6OCHEKCWQ86TOvwUsa9f4kp7qqY 8hZoPipaDFgD//XRzxn/eLl2BLXsFXfO9zaOYm26LrbbWAnG8hA7H5qiqS9e9v8HFwtW BG3BAKZhMhDuj0jvoaffBm0mWmBe009D7VK6c= MIME-Version: 1.0 Received: by 10.227.147.203 with SMTP id m11mr3852998wbv.4.1279906664542; Fri, 23 Jul 2010 10:37:44 -0700 (PDT) Received: by 10.227.1.225 with HTTP; Fri, 23 Jul 2010 10:37:44 -0700 (PDT) In-Reply-To: <201007231921.45803.hselasky@c2i.net> References: <201007231657.47682.hselasky@c2i.net> <201007231921.45803.hselasky@c2i.net> Date: Fri, 23 Jul 2010 19:37:44 +0200 Message-ID: From: Peer Stritzinger To: Hans Petter Selasky Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-usb@freebsd.org Subject: Re: FreeBSD 8: libusb async mode + select(2) = nogo? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jul 2010 17:37:46 -0000 Hi, On Fri, Jul 23, 2010 at 7:21 PM, Hans Petter Selasky wrote: > > Should work, but it might be that the second poll, when you try to process the > events, don't work like expected. After any event on the two fd's you should > call "libusb_handle_events_locked()" using a "tv = NULL". I was calling libusb_handle_events_timeout(ctx, NULL), does this make an difference (only running single threaded) -- Peer