Message-Id: <3.0.16.19980215134907.32ef8a54@hem1.passagen.se> Date: Sun, 15 Feb 1998 13:49:10 -0500 To: djgpp AT delorie DOT com From: Peter Palotas Subject: Re: Thread safe programs. Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Precedence: bulk At 04.11 1998-02-15 -0800, you wrote: >Peter Palotas wrote: > Do you *really* need a global linked list? :) I ask that because many >(most?) people never learn to approach a problem in a truely non-linear >manner. Uhm, okay, I'll explain what I'm doing. I'm writing a library somewhat like FORTIFY if you've heard of it which catches all calls to new/delete/malloc/free/calloc/realloc and adds stuff to a global linked list, and checks for out of bounds writings and a lot of other stuff. Now maybe it's not neccessary to have global read/write data, but I can't think of any other way. So to make this library thread-safe I now provide a couple of #defines for disabling/enabling threads. If you have any idea on how to improve this or any comment suggestions, please let me know! -- Peter Palotas alias Blizzar -- blizzar AT hem1 DOT passagen DOT se -- ****************************************************** * A brief description of DJGPP: * * NEVER BEFORE HAVE SO FEW DONE SO MUCH FOR SO MANY! * ******************************************************