From owner-freebsd-current@FreeBSD.ORG Wed Apr 20 03:02:45 2011 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 2968A106566B; Wed, 20 Apr 2011 03:02:45 +0000 (UTC) (envelope-from rysto32@gmail.com) Received: from mail-ew0-f54.google.com (mail-ew0-f54.google.com [209.85.215.54]) by mx1.freebsd.org (Postfix) with ESMTP id 623968FC1B; Wed, 20 Apr 2011 03:02:44 +0000 (UTC) Received: by ewy1 with SMTP id 1so105440ewy.13 for ; Tue, 19 Apr 2011 20:02:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=ejlubP0Y8G60cue0oFcSR1+C2WB6R5b2yi6lTArLEMQ=; b=O1MunmcT8G+TR48gcvQLRq7UCYTf73dOUNyyvFace7392P98SP9gqUEn8wFvWyjjdy cQ0k95QbpwLk3y0OiHe803p8eo3w0I0ru9hVyjdcC4BnDnP2NA7XOmFSZIp1fXpvvxap qf8EftH20E+L6nFDevTaEosWTvDf9UewReTHw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=UCEloc7q19GRLqyRnYbViwNvOK9oEj9KRWIyzCQAvoFnvRjjxYSCNpVnF8/Z0h4bas u3oY/Dg/sogpzIUeTOITuDFce+oCCJfJox+jhVrHXwZOXYtjEdiphST8iJcpuWNuGDNN gWAetz+01enXVk0vIJal4JYBDhoJ0UY4MEMTI= MIME-Version: 1.0 Received: by 10.213.113.205 with SMTP id b13mr78879ebq.62.1303268563253; Tue, 19 Apr 2011 20:02:43 -0700 (PDT) Received: by 10.213.32.4 with HTTP; Tue, 19 Apr 2011 20:02:43 -0700 (PDT) In-Reply-To: <4DAE4BC1.7030007@freebsd.org> References: <4DAE4164.9080006@freebsd.org> <4DAE4BC1.7030007@freebsd.org> Date: Tue, 19 Apr 2011 23:02:43 -0400 Message-ID: From: Ryan Stone To: David Xu Content-Type: text/plain; charset=ISO-8859-1 Cc: FreeBSD Current , Ed Maste Subject: Re: [PATCH] Call _thr_check_init() from _pthread_once 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: Wed, 20 Apr 2011 03:02:45 -0000 On Tue, Apr 19, 2011 at 10:58 PM, David Xu wrote: > > But I don't touch curthread unless it is blocked by another thread. > You do a THR_CLEANUP_PUSH(curthread, once_cancel_handler, once_control); before calling *init_routine. THR_CLEANUP_PUSH touches curthread->cleanup;