From owner-freebsd-threads@FreeBSD.ORG Wed Dec 23 13:17:43 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 F22B0106566C; Wed, 23 Dec 2009 13:17:43 +0000 (UTC) (envelope-from kabaev@gmail.com) Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.25]) by mx1.freebsd.org (Postfix) with ESMTP id 910468FC1C; Wed, 23 Dec 2009 13:17:43 +0000 (UTC) Received: by qw-out-2122.google.com with SMTP id 9so1540915qwb.7 for ; Wed, 23 Dec 2009 05:17:42 -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=anrjBSjdBOQ4Qo019QSy5PYeB4P2SXf8/H9VnkzUybs=; b=T5vA7SMuzzf8RNChtQ57TWc+kwFZl1U4BxPSixM6Mwgw6ihrT6LLJNrdjYkgl+n/Y1 S5nxETij3fCbcioxBhAhPGI4kjlQKGYh0Af68jMtHK1Ay1t9Mc5IS/6Sepw8GMOwo6ob Se8fU7plQZ4ClfodI4aacdCGiAzvRv7vPx0tk= 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=UUEPEfzlkjx9XsRDgltoEt5SfMdsnmDeOnnJ1gVqqkenP5BEZ8gZQfiqlvRTN2PqFQ 73OZ9u2Un9l6aW0NRGNbckzwL0f6rSPOWmNAEo3yrhzuNqWzE1l6z1vGofNlQKkySmWf jc7pFj4iYg7CkSvdHYDOoSdi9WGju/o8Ty9Rc= Received: by 10.224.51.76 with SMTP id c12mr5188646qag.363.1261572435608; Wed, 23 Dec 2009 04:47:15 -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 26sm20447456qwa.10.2009.12.23.04.47.12 (version=SSLv3 cipher=RC4-MD5); Wed, 23 Dec 2009 04:47:13 -0800 (PST) Date: Wed, 23 Dec 2009 07:47:07 -0500 From: Alexander Kabaev To: David Xu Message-ID: <20091223074707.2a7ca9d6@kan.dnsalias.net> In-Reply-To: <4B317741.8080004@freebsd.org> References: <4B317741.8080004@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_/vz9bE1U_Wrr212QsM0UsFxx"; 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: Wed, 23 Dec 2009 13:17:44 -0000 --Sig_/vz9bE1U_Wrr212QsM0UsFxx Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Wed, 23 Dec 2009 09:49:53 +0800 David Xu wrote: > This is my first attempt to make process-shared mutex work, this means > you can mmap(MAP_SHARED) a memory area, and put semaphore there, > or you can sem_open a named semaphore, and just use it between > processes, the named semaphore uses file system and mmap(), directory=20 > /tmp/.semaphore is used as IPC directory, any named semaphore > locates in the directory. old semaphore implementation still exists > to make it binary compatible, it uses symbol version. >=20 > http://people.freebsd.org/~davidxu/patch/shared_semaphore_1.patch >=20 >=20 > David Xu >=20 > _______________________________________________ > freebsd-threads@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-threads > To unsubscribe, send any mail to > "freebsd-threads-unsubscribe@freebsd.org" Hi, is libthr really required for semaphores? Semaphore API seem orthogonal to pthreads. None of the man pages on OpenGroup size indicate where these belong, but they put sem_open & friends into REALTIME group and Linux has them in librt. --=20 Alexander Kabaev --Sig_/vz9bE1U_Wrr212QsM0UsFxx Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.13 (FreeBSD) iD8DBQFLMhFPQ6z1jMm+XZYRAgwgAJ9O5X+csnvgT6dr7aBHBEcsKom0fwCgpsSa dSJqIqMI9Fr50JqB0WdpiWw= =tnF2 -----END PGP SIGNATURE----- --Sig_/vz9bE1U_Wrr212QsM0UsFxx--