Message-ID: <33722526.4567@post.comstar.ru> Date: Thu, 08 May 1997 12:10:30 -0700 From: Dim Zegebart 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 Subject: Re: LWP 1.1 available References: <199705071225 DOT IAA24372 AT delorie DOT com> <33709D9D DOT 33F0 AT eik DOT bme DOT hu> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Precedence: bulk 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