Malloc() and threads

Never use malloc() in a thread in a non-MTsafe (libc5,win32) environment.

See ya!
-Sam Lantinga (slouken at–
Author of Simple DirectMedia Layer -

Are you positive you can even call malloc in a thread in glibc? I
don’t know one way or the other, but I can imagine malloc being
restricted even there.