Re: [PATCH] Call _thr_check_init() from _pthread_once

From: Ryan Stone <rysto32_at_gmail.com>
Date: Tue, 19 Apr 2011 23:02:43 -0400
On Tue, Apr 19, 2011 at 10:58 PM, David Xu <davidxu_at_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;
Received on Wed Apr 20 2011 - 01:02:45 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:13 UTC