[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Getting libpthread working again
From: |
Samuel Thibault |
Subject: |
Re: Getting libpthread working again |
Date: |
Sat, 18 Apr 2009 01:15:11 +0200 |
User-agent: |
Mutt/1.5.12-2006-07-14 |
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