From owner-freebsd-hackers@FreeBSD.ORG Fri Mar 23 07:38:37 2007 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5BA4016A402 for ; Fri, 23 Mar 2007 07:38:37 +0000 (UTC) (envelope-from pietro.cerutti@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.241]) by mx1.freebsd.org (Postfix) with ESMTP id 1493D13C4AE for ; Fri, 23 Mar 2007 07:38:36 +0000 (UTC) (envelope-from pietro.cerutti@gmail.com) Received: by an-out-0708.google.com with SMTP id c24so1116413ana for ; Fri, 23 Mar 2007 00:38:36 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=aQ2vJ7iEQBAW9XoqspLIVXpFjDIaasJ5I2haQwNwaoPBSQ9n8xgIVAH2wj7rW2jZfFdw4/2TfTCdNfj3GmYNDvKXbvlP27bUzNfhFmjm9SOuWz2eHCJqKK471kFo7znsGRyN9FcUxntlPCDDBo8+VbR69UApA1KxM2ZMB3baVQE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=kk7WU8+yvF2ZUgQXljokboRmgd6tmS9qwihuiantYHE2x0NqR70+Ii4vMpYe4iyb7bc6QQS9WBBAuAiwJQtu9eVMlfkrJgiUmJRc05e3zkBn+xIjtyrvtA1qAcQgKBnd5X7u1WfJXQXRWyKieN+daPA0F7N05717Vx26OUrRr40= Received: by 10.100.32.1 with SMTP id f1mr2389011anf.1174634061906; Fri, 23 Mar 2007 00:14:21 -0700 (PDT) Received: by 10.100.111.5 with HTTP; Fri, 23 Mar 2007 00:14:21 -0700 (PDT) Message-ID: Date: Fri, 23 Mar 2007 08:14:21 +0100 From: "Pietro Cerutti" To: "xpeng@buffalo.edu" In-Reply-To: <1174614930.4603339242c9a@mail2.buffalo.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <000c01c76cbc$7ba87ec0$72f97c40$@pl> <1174614930.4603339242c9a@mail2.buffalo.edu> Cc: hackers@freebsd.org Subject: Re: mtx_unlock in kernel X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Mar 2007 07:38:37 -0000 On 3/23/07, xpeng@buffalo.edu wrote: > If I want to use mtx_unlock for some threads, should I use mtx_lock() > before? I admit, I don't understand your question, but anyway: man 9 mutex -- Pietro Cerutti - ASCII Ribbon Campaign - against HTML e-mail and proprietary attachments www.asciiribbon.org