22 Apr
2012
22 Apr
'12
7:03 p.m.
On Sun, Apr 22, 2012 at 1:55 PM, Antony <lisp.linux@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