Array append performance
Steven Schveighoffer
schveiguy at yahoo.com
Sat Aug 23 13:34:37 PDT 2008
"Adam D. Ruppe" wrote
> On Sat, Aug 23, 2008 at 05:50:08PM +0000, dsimcha wrote:
>> Does anyone know if DMD's std.c.stdlib.malloc/free/realloc are
>> threadsafe?
>
> I wouldn't rely on it. Those are just interfaces to the platform's native
> C library, which may or may not be thread safe - the C spec doesn't say
> anything about threads at all (if I remember correctly).
Although the spec may not say it, any modern OS has a thread safe malloc.
You should have no problems.
-Steve
More information about the Digitalmars-d
mailing list