[PATCH] Call _thr_check_init() from _pthread_once

Ryan Stone rysto32 at gmail.com
Wed Apr 20 03:02:45 UTC 2011


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;


More information about the freebsd-current mailing list