DragonFly BSD
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 ...


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxx>
Date: Wed, 2 Feb 2005 10:28:57 -0800 (PST)

:> (Joerg)
:> 
:> What about something similiar to SIGCHLD?
:> 
: (David)
:It is better to avoid signal wrapper in thread library, simplicity
:is better.

    There is an issue of event notification.  It sure would be nice if we 
    had it.

    What if we added a third argument... a file descriptor that the kernel
    writes an exit record to.  -1 could be specified if the feature is not
    desired.

    #include <unistd.h>

    __sys_set_exit_feature(int *addr, int data, int fd);

    Upon exit the specified data is written to the specified user address and
    a sys_exit_record structure is written to the specified descriptor.
    Both features are optional.  addr may be specified as NULL and/or fd may
    be specified as -1.

					-Matt
					Matthew Dillon 
					<dillon@xxxxxxxxxxxxx>



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]