Re: cvs commit: src/lib/libthread_xu Makefile pthread.map src/li

看板DFBSD_commit作者時間21年前 (2005/02/03 08:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串21/24 (看更多)
Matthew Dillon wrote: >:> (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. > > I only need addr and data, fd is not required, for third parameter, I don't know who will use it. =) > -Matt > Matthew Dillon > <dillon@backplane.com> > > > >
文章代碼(AID): #120N4700 (DFBSD_commit)
討論串 (同標題文章)
完整討論串 (本文為第 21 之 24 篇):
文章代碼(AID): #120N4700 (DFBSD_commit)