From owner-cvs-all@FreeBSD.ORG Thu Dec 30 02:56:18 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0AC4716A4D6; Thu, 30 Dec 2004 02:56:18 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id C9B4B43D48; Thu, 30 Dec 2004 02:56:17 +0000 (GMT) (envelope-from davidxu@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id iBU2uHbA071596; Thu, 30 Dec 2004 02:56:17 GMT (envelope-from davidxu@repoman.freebsd.org) Received: (from davidxu@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id iBU2uHuN071595; Thu, 30 Dec 2004 02:56:17 GMT (envelope-from davidxu) Message-Id: <200412300256.iBU2uHuN071595@repoman.freebsd.org> From: David Xu Date: Thu, 30 Dec 2004 02:56:17 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/sys umtx.h src/sys/kern kern_umtx.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Dec 2004 02:56:18 -0000 davidxu 2004-12-30 02:56:17 UTC FreeBSD src repository Modified files: sys/sys umtx.h sys/kern kern_umtx.c Log: Make umtx_wait and umtx_wake more like linux futex does, it is more general than previous. It also lets me implement cancelable point in thread library. Also in theory, umtx_lock and umtx_unlock can be implemented by using umtx_wait and umtx_wake, all atomic operations can be done in userland without kernel's casuptr() function. Revision Changes Path 1.25 +9 -41 src/sys/kern/kern_umtx.c 1.9 +7 -9 src/sys/sys/umtx.h