Mail Archives: djgpp/1996/06/11/13:38:58
| Xref: | news2.mv.net comp.os.msdos.djgpp:4845
|
| From: | fmarcos AT jet DOT es (Fernando Marcos)
|
| Newsgroups: | comp.os.msdos.djgpp
|
| Subject: | Re: Static variables in an Interrupt service routine
|
| Date: | Tue, 11 Jun 1996 13:53:40 GMT
|
| Organization: | Servicio IBERNET (Telefonica Transmision de Datos)
|
| Lines: | 20
|
| Message-ID: | <4pjtue$qkv@artemis.ibernet.es>
|
| References: | <4pgnh5$ub AT newsfeed DOT cs DOT auc DOT dk>
|
| NNTP-Posting-Host: | minfo187.jet.es
|
| To: | djgpp AT delorie DOT com
|
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
ff AT kom DOT auc DOT dk (Frank Frederiksen) wrote:
>the programming, I came to wonder if a static variable, declared
>inside the function, gets locked along with the code locking
>(with _go32_dpmi_lock_code(x,l);) or is it has to be declared and
>locked as all the other global variables?
Frank:
I think that static variables declared inside a function are in fact
"private" global variables, that is, is stored along with all public
global variables. I recommend you to place global ISR variables
outside the function.
Hope this helps.
Fernando.
- Raw text -