From owner-freebsd-threads@FreeBSD.ORG Thu Dec 24 03:12:26 2009 Return-Path: Delivered-To: threads@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 76048106566C; Thu, 24 Dec 2009 03:12:26 +0000 (UTC) (envelope-from kabaev@gmail.com) Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.27]) by mx1.freebsd.org (Postfix) with ESMTP id 10A8F8FC13; Thu, 24 Dec 2009 03:12:25 +0000 (UTC) Received: by qw-out-2122.google.com with SMTP id 9so1668018qwb.7 for ; Wed, 23 Dec 2009 19:12:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:in-reply-to:references:x-mailer:mime-version :content-type; bh=W9hteEqC2YmqAoyRhRlGym1I6364v9OsSs07b/iY29w=; b=nlkVVJ5uLIbPGZmPlVN2BugQjCa375VJkvk8B6H11/8wKOWfF05NQeVznipUwyTUKX X4rtIWz1tiPJV3gQ42jm4gInJkSxsQqj1getzpW31+LSTwYqenGMkGpu5iHpA0scwJQ6 OuuLN/FW7HUmTCx127SwqqDLfU74tythA65dA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type; b=vUQAXuDFQnDXnfbtgjj7hm4Glo9aVUHBvKYAsgvKYjaKiesS9pu///fXr5tyFdQUk0 ETwfD/SU29XfYAmBgTHksortOsk862XneDVlc4VeI8076+CnUq6kYSOFJVKYkzFQ3URc jo1cPE95OF0+v1vy8XrwNgt275a8ucYGBQpKY= Received: by 10.224.56.203 with SMTP id z11mr5627733qag.265.1261624345419; Wed, 23 Dec 2009 19:12:25 -0800 (PST) Received: from kan.dnsalias.net (c-24-91-218-112.hsd1.ma.comcast.net [24.91.218.112]) by mx.google.com with ESMTPS id 5sm22028102qwg.58.2009.12.23.19.12.24 (version=SSLv3 cipher=RC4-MD5); Wed, 23 Dec 2009 19:12:24 -0800 (PST) Date: Wed, 23 Dec 2009 22:12:19 -0500 From: Alexander Kabaev To: David Xu Message-ID: <20091223221219.4416cef6@kan.dnsalias.net> In-Reply-To: <4B32CADA.4010407@freebsd.org> References: <4B317741.8080004@freebsd.org> <20091223074707.2a7ca9d6@kan.dnsalias.net> <4B32C25A.8040703@freebsd.org> <20091223203539.400bbfda@kan.dnsalias.net> <4B32CADA.4010407@freebsd.org> X-Mailer: Claws Mail 3.7.3 (GTK+ 2.18.5; amd64-portbld-freebsd9.0) Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/Q1pKAvMK=kns27.hzjBik+8"; protocol="application/pgp-signature" Cc: threads@freebsd.org Subject: Re: first patch for process-shared semaphore X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Dec 2009 03:12:26 -0000 --Sig_/Q1pKAvMK=kns27.hzjBik+8 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Thu, 24 Dec 2009 09:58:50 +0800 David Xu wrote: > Alexander Kabaev wrote: > > On Thu, 24 Dec 2009 09:22:34 +0800 > > David Xu wrote: > >> libthr does not require semaphore, it implements semaphore, > >> it is easier than other ways to implement the process-shared. > >> > > Let me rephrase: I do not think semaphores belong in libthr. They > > should be either in libc or in librt. > >=20 > >=20 > OK, does others really implement semaphore in librt ? > unfortunately, the librt already requires libpthread to implement > SIGEV_THREAD. I retract that. It appears that there is no consistency - Solaris put these into libc, Linux into libpthread ans SUSv2 hints that these belong with realtime functions. libthr is fine. --=20 Alexander Kabaev --Sig_/Q1pKAvMK=kns27.hzjBik+8 Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.13 (FreeBSD) iD8DBQFLMtwXQ6z1jMm+XZYRAsYhAKCKoVhQA16GT2PSKkoIdMjs53CLmQCffyWV ZwV0bNkdFJ5aCCveMhASsjc= =4hAT -----END PGP SIGNATURE----- --Sig_/Q1pKAvMK=kns27.hzjBik+8--