delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/07/19/05:29:02

Date: Sun, 19 Jul 1998 12:25:37 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Steve Ball <s DOT ball AT xtra DOT co DOT nz>
cc: djgpp AT delorie DOT com
Subject: Re: longjmp() from interrupt handler
In-Reply-To: <6omtlb$9gs$1@wolfman.xtra.co.nz>
Message-ID: <Pine.SUN.3.91.980719122443.29744J-100000@is>
MIME-Version: 1.0

On Fri, 17 Jul 1998, Steve Ball wrote:

> Josh Turpen, the author of the LWP multi-threading library, has suggested
> using an illegal instruction trap to recover. This sounds like a promising
> idea. Even better would be to use the threading library and just run the
> call in a separate thread. I'll be looking into this... I'm not sure if it
> will work with PMODE/DJ.

The second way will not work, since once you issue a call to a
real-mode interrupt function, threading stops until that call returns.

The first way will probably not work either, since in DJGPP it
generates a signal, and signals are only delivered when your program
is back in protected mode.  At the most, it will crash your program.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019