Path: utzoo!utgpu!watserv1!ria!csd.uwo.ca!terry From: terry@csd.uwo.ca (Terry Cudney) Newsgroups: comp.sys.amiga.programmer Subject: Can you use Signal() from an input handler? Message-ID: <2032@ria.ccs.uwo.ca> Date: 11 Jan 91 22:57:14 GMT Sender: news@ria.ccs.uwo.ca Followup-To: comp.sys.amiga.programmer Organization: Amistosa MicroWare Lines: 29 Hi, I have an input handler which follows the example in the RKM companion disks (devices/input/inputswap.c & inputhandler.a). We can fiddle with the input events here, no problem. I want to send a signal from the handler to the main program using Signal(), so that the main program can do some DOS stuff. - The Task pointer (pointing to the main program) and a pre-AllocSignal()-ed signal bitnumber are passed to the handler in it's data area. (The data area isn't used otherwise, in this handler.) So far so good. Using kprintf's to a serial terminal I know things are getting passed OK. But el GURU visits as soon as the Signal() function is called in the handler. Question: Can the Signal() function not be called from an input handler to signal another process? If not, what other mechanism (without busy-waiting) could tell the other process that a particular input event (RAMIGA + ALPHABETIC KEY)? has occurred? Any help will be greatly appreciated. -- --terry /* terry@chaplin.csd.uwo.ca * Terry Cudney Amistosa MicroWare 9 Durham Street, LONDON, Ontario, N5Y 2H9 */