This is the mail archive of the ecos-patches@sources.redhat.com mailing list for the eCos project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Attached is a patch that adds support for the POSIX SIGEV_THREAD signal notification type. SIGEV_THREAD is a type of signal notification that can be used to launch a POSIX thread instead of delivering an actual POSIX signal. I would appreciate any feedback on the patch. In particular, the section in cyg_sigqueue() that actually launches the notification thread chooses some default thread characteristics that aren't defined by POSIX. I chose some that seemed reasonable. I was going to add some CDL options to allow configuration of these default parameters (specifically thread stack size and execution priority). However, after some deliberation I changed my mind. Seems like POSIX threads should not rely on these values and should instead specify them explicitly by using the thread attributes parameter in sigevent. Any comments on this? Finally, I apologize but I couldn't figure out how to add a new file to a patch. I attached a new test file to test this code. It belongs in ecos/packages/compat/posix/current/tests/signal4.c. This file need a GPL header of some sort and I wasn't sure what to use. Can someone help here? Thanks, -- Dan Jakubiec Systech Corp __________________________________ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree
Attachment:
sigev_thread.pat
Description: sigev_thread.pat
Attachment:
signal4.c
Description: signal4.c
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |