delorie.com/archives/browse.cgi | search |
From: | "Rafał Maj" <r_maj AT poczta DOT onet DOT pl> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Disabling interrupts ? |
Date: | Sun, 17 Sep 2000 15:37:47 +0200 |
Organization: | Academic Computer Center CYFRONET AGH |
Lines: | 22 |
Message-ID: | <8q2hfc$v9$1@info.cyf-kr.edu.pl> |
NNTP-Posting-Host: | d-94-53-17.cyfronet.krakow.pl |
X-Trace: | info.cyf-kr.edu.pl 969197868 1001 149.156.1.177 (17 Sep 2000 13:37:48 GMT) |
X-Complaints-To: | news AT cyf-kr DOT edu DOT pl |
NNTP-Posting-Date: | 17 Sep 2000 13:37:48 GMT |
X-Priority: | 3 |
X-MSMail-Priority: | Normal |
X-Newsreader: | Microsoft Outlook Express 5.00.2615.200 |
X-MimeOLE: | Produced By Microsoft MimeOLE V5.00.2615.200 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
Hi, >>>>>>>> Is there any way in DJGPP to disable all interrupts : I want to write function like : void critical_error(int code) { disable_interrupts(); // ??? textmode(C80); /*...*/ _exit(code); } I need to disable interrupts, because, if interrupts will remain active, then for example Allegro mouse redrawing routine will cause error. This critical_error() function will be used, when my program will become unstable (like out of memory etc...) so I don't want any other interrupts to continue working, because they will probably cause other problems. >>>>>>>>> Is there way to re-enable interrupts ? It'll be useful in making something like Windows "blue screen"
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |