Thread View: gnu.g++.help
1 messages
1 total messages
Started by Anne Wilson
Wed, 09 Jan 1991 20:35
Interrupt Handler Environment?
Author: Anne Wilson
Date: Wed, 09 Jan 1991 20:35
Date: Wed, 09 Jan 1991 20:35
23 lines
1703 bytes
1703 bytes
--text follows this line-- How is the environment for interrupt handlers different than that of regular functions, under Unix? I understand that the system, rather than the compiler, calls the fuction, but what implications does this have? I'm asking this question because of the following problem. I am writing in C++, using g++ on a VAX. I have written an interrupt handler, called recv_Message, which is also member of a class, Message. The problem is that when the handler is called, it does not have the correct value for the other data members of the class. The only method I have found for giving it the correct value is to copy the value to a global variable before the handler is called, and then the handler references the global variable. This is not very satisfying!! and gets messy for muliple instances of Message objects. Why does the handler not have the current value of the other data members? Is using global variables the only way to give it the proper information? Any help or insight would be appreciated! Anne Wilson wilson@mimsy.cs.umd.edu
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads