From owner-freebsd-current@FreeBSD.ORG Thu Dec 9 08:03:50 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 782B8106567A; Thu, 9 Dec 2010 08:03:50 +0000 (UTC) (envelope-from davidxu@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 683AF8FC15; Thu, 9 Dec 2010 08:03:50 +0000 (UTC) Received: from xyf.my.dom (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id oB983n8U067494; Thu, 9 Dec 2010 08:03:49 GMT (envelope-from davidxu@freebsd.org) Message-ID: <4D008D65.2000600@freebsd.org> Date: Thu, 09 Dec 2010 16:03:49 +0800 From: David Xu User-Agent: Thunderbird 2.0.0.24 (X11/20100630) MIME-Version: 1.0 To: FreeBSD Current References: <4CF4901B.8030108@freebsd.org> <4CF5B421.2040807@freebsd.org> In-Reply-To: <4CF5B421.2040807@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Daniel Eischen Subject: Re: CFT(2): patch for process shared pthread objects X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Dec 2010 08:03:50 -0000 David Xu wrote: > David Xu wrote: >> Hi, >> >> I finally have worked out first patch to make our pthread library >> support process shared pthread objects: >> >> http://people.freebsd.org/~davidxu/pshared/patch1.diff >> > > Patch is updated: > http://people.freebsd.org/~davidxu/pshared/patch2.diff > > Changes: > 1) Macro _POSIX_THREAD_PROCESS_SHARED in unistd.h is changed, > now its value is 200112L. > 2) Version of libgcc is bumped. > 3) Thread cancellation is fixed in pthread_cond_wait(), this > should make csup run again. > > I have updated patch again: http://people.freebsd.org/~davidxu/pshared/patch6.diff This time, process shared priority-inherit mutex is supported. Now my machine is running with various threaded applications and a gnome desktop, I have not found any problem. I wish the patch can be committed before 9.0 release. :-) Regards, David Xu