Reentrant functions and memory allocation
- From: fmassei@xxxxxxxxx
- Date: Sun, 30 Mar 2008 05:45:37 -0700 (PDT)
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
.
- Follow-Ups:
- Re: Reentrant functions and memory allocation
- From: Tomás Ó hÉilidhe
- Re: Reentrant functions and memory allocation
- From: CBFalconer
- Re: Reentrant functions and memory allocation
- From: Eric Sosman
- Re: Reentrant functions and memory allocation
- From: santosh
- Re: Reentrant functions and memory allocation
- From: Flash Gordon
- Re: Reentrant functions and memory allocation
- Prev by Date: Re: ?: as an lvalue
- Next by Date: Re: Experiences using "register"
- Previous by thread: ?: as an lvalue
- Next by thread: Re: Reentrant functions and memory allocation
- Index(es):
Relevant Pages
|