Mail Archives: djgpp/1997/05/08/04:15:27
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 -