Thomas Schwinge, le Sun 12 Apr 2009 17:32:12 +0200, a écrit :
>    __mach_port_destroy (__mach_task_self (),
>                      thread->wakeupmsg.msgh_remote_port);
> +
> +  thread->have_kernel_resources = 0;
>  }

Mmm, I do not like setting have_kernel_resources being set to 0 in
pthread_thread_dealloc(), because pthread_thread_dealloc() does not
destroy the kernel thread itself, it's the caller's matter.  Yes it
means putting it in a lot more places, but that'd be much cleaner &
safer I think.

Samuel


Reply via email to