[alexandria-devel] Proposed addition of temporary file creation utilities
Hans Hübner
hans.huebner at gmail.com
Sun Apr 22 19:03:10 UTC 2012
On Sun, Apr 22, 2012 at 1:55 PM, Antony <lisp.linux at gmail.com> wrote:
> In addition to the suggested use of mkstemp kind of things, I'd like to
> point out that your proposed code's use of 'random' may not be thread safe
> (I don't mean it's hazardous, but it may not generate unique names). May
> not be a big deal, but just one more point to consider.
Thank you for pointing that out. I'm not quite sure whether one can
expect calls to be thread-safe or not. The standard certainly has
nothing to say about this, but maybe someone here knows what the
implementations do?
Thanks,
Hans
More information about the alexandria-devel
mailing list