Mail Archives: djgpp/1998/02/15/07:53:51
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! *
******************************************************
- Raw text -