DragonFly commits List (threaded) for 2005-02
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
Re: cvs commit: src/lib/libthread_xu Makefile pthread.map src/lib/libthread_xu/arch Makefile.inc src/lib/libthread_xu/arch/alpha Makefile.inc src/lib/libthread_xu/arch/alpha/alpha pthread_md.c src/lib/libthread_xu/arch/alpha/include pthread_md.h src/lib/libthread_xu/arch/amd64 ...
On Thu, Feb 03, 2005 at 07:31:51AM +0800, David Xu wrote:
> Linux has exit_group() which I think is used to implement exit().
> FreeBSD introduced thr_exit and kse_exit to exit single thread,
> and leave orignal exit() to exit whole process.
I haven't looked up the semantic of exit_group, but exit() must
terminate the whole program. If we want to fully support POSIX
signal sematic, we have introduce another exit mechanism to cancel
a part of a thread group.
Concerning the cleanup of code, waitpid (or waittid) seems to be
enough for my reading of the SUS. It should not be a problem to
defer the resource freeing until pthread_detach or pthread_join
is called. If I read the requirements correctly, one or the other
has to be called by the program anyway.
Joerg
>
> David Xu
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]