delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/05/08/04:15:27

Message-ID: <33722526.4567@post.comstar.ru>
Date: Thu, 08 May 1997 12:10:30 -0700
From: Dim Zegebart <zager AT post DOT comstar DOT ru>
Reply-To: zager AT post DOT comstar DOT ru
Organization: zager AT post DOT comstar DOT ru
MIME-Version: 1.0
To: DJGPP Mail List <djgpp AT delorie DOT com>
Subject: Re: LWP 1.1 available
References: <199705071225 DOT IAA24372 AT delorie DOT com> <33709D9D DOT 33F0 AT eik DOT bme DOT hu>

Dr. Andras Sólyom wrote:
> 
> Is it possible to marry LWP and Allegro? Or has it been already done?
> 
I think it's possible. Use IRQ8 (real time clock) as parametr to
lwp_init, since Allegro
hooks irq0 (system timer) and do a lot of critical stuff in
'irq0'_handler. Another thing
to think about is rentrantnes  of Allegro's routines, but this question
is better to ask
Shawn (Allegro creator).
Anyway use 
lwp_thread_disable();
non_rentrant_function();
lwp_thread_enable();

This is not so elegant as writing rentrant code but it's work. ;)

-- 
Regards,
Dim Zegebart, 
Moscow Russia.
Ghostly basement : http://www.geocities.com/siliconvalley/pines/7817

- Raw text -


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