On Thu, 17 Jul 2008, Peter W. Draper wrote:
> Some of these have safe "_r" forms, like strerror_r, which I'm thinking
> might be a good one to use in EMS. I believe most other functions are
> thread safe, albeit with mutexes when needed (that make's you wonder
> about the performance of malloc or anything else that depends on global
> data).
David,
I've updated ems-thread-safe to use strerror_r and strtok_r and protected
the one call to getenv (probably a waste of time, but at least it
documents the intent), so update and see if that helps/breaks anything.
Cheers,
Peter.
|