Reentrant functions and memory allocation



Dear all,
I'm trying to put some old code in a portable, cross-platform library
and I'm facing a big problem: is there a standard, platform-
independent way to write a reentrant function that allocate dynamic
memory? In other words: is it safe to use malloc() or free() in a
thread-safe function?
Thank you,
Francesco
.



Relevant Pages

  • Re: Steve Jordan w/ John Mayer on Kimmel last night
    ... One kit was a standard 4 piece facing the audience and the other was the two piece just to his left facing Mayer and Paladino. ...
    (rec.music.makers.percussion)
  • Reenter old values
    ... I'm facing the next problem, ... When having a label on a form with standard Top = 40 ... Is there a code to get the standard Object Inspector ... Thanks Sander ...
    (alt.comp.lang.borland-delphi)