delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/01/05/01:28:53

Message-ID: <010d01be38d8$593b4320$ee023ace@alpha>
From: "Brian Bacon" <kyberteknik AT geocities DOT com>
To: <djgpp AT delorie DOT com>
Subject: multi-threading
Date: Tue, 5 Jan 1999 10:22:22 -0800
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 4.72.3110.1
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Reply-To: djgpp AT delorie DOT com

Has anyone gotten any multi-threading library to work with v2.02?  I have
been trying to get LWP to work for a couple days now, and it still doesn't.
First, when using pre-emptive multithreading, the scheduler seems to never
get run.  It is called by calling __djgpp_hw_exception, which is called in
the int8 hardware handler, and installing the scheduler as the SIGILL
handler.  Second, when co-op multithreading, the thread doesn't call the
_deadyield function correctly, creating a SIGABRT (the registers get screwed
up on the ret at the end of the thread's function).  However I was able to
conquer a memory freeing problem, which was trying to free the thread's
stack pointer, and not the thread's stack base-address (returned by the
malloc call).  Can anyone help?

-Brian


"All in all you were all just bricks in the wall" Pink Floyd - The Wall
----------------------------------------------------------------------------
-------------------------------
Brian Bacon  -  kyberteknik AT geocities DOT com
ICQ: 3218637
http://trr.home.ml.org/
GCS d- p- c++++ l- u e* m++(+++/---)@ s+/- n---@ h-- f+ g+ w++ t+ r x?


- Raw text -


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