Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Apr 2011 23:02:43 -0400
From:      Ryan Stone <rysto32@gmail.com>
To:        David Xu <davidxu@freebsd.org>
Cc:        FreeBSD Current <freebsd-current@freebsd.org>, Ed Maste <emaste@freebsd.org>
Subject:   Re: [PATCH] Call _thr_check_init() from _pthread_once
Message-ID:  <BANLkTi=LhWQgiy2M=8YSWP9t-PSzRj-Hpw@mail.gmail.com>
In-Reply-To: <4DAE4BC1.7030007@freebsd.org>
References:  <BANLkTikwT0qOB32DeLMdFkx4vkx6_HAkQg@mail.gmail.com> <4DAE4164.9080006@freebsd.org> <BANLkTin5P7bTvUkSLPDLig8nP8dFQkh49g@mail.gmail.com> <4DAE4BC1.7030007@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Apr 19, 2011 at 10:58 PM, David Xu <davidxu@freebsd.org> 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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BANLkTi=LhWQgiy2M=8YSWP9t-PSzRj-Hpw>