delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2004/05/17/08:30:11

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
Date: Mon, 17 May 2004 14:29:51 +0200 (MEST)
From: Gabriel Zoltan <gz331 AT hszk DOT bme DOT hu>
X-X-Sender: gz331 AT ural2
To: djgpp AT delorie DOT com
Subject: Re: Task switch with SIGALRM
In-Reply-To: <c8a3oo$rso$1@news-reader5.wanadoo.fr>
Message-ID: <Pine.GSO.4.58.0405171423250.10278@ural2>
References: <Pine DOT GSO DOT 4 DOT 58 DOT 0405170936310 DOT 4679 AT ural2> <c8a3oo$rso$1 AT news-reader5 DOT wanadoo DOT fr>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

Hi!

Thanks for the code you provided. I'm going to try to use setjmp/longjmp.
The only thing I don't understand is how you set up the jmp_buf structure
initially. How do I run a task for the first time? Could someone please
explain it? (Sadly I'm quite in a rush for trial&error.) Thanks in
advance.

Zoltan

On Mon, 17 May 2004, Lawrence Rust wrote:

> It may prove useful to look at the source for setjmp and longjmp to see
> what's needed.  IMHO it's probably easier to use setjmp and longjmp to
> switch between threads since these routines already handle the complexity.

- Raw text -


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