|
-
July 21st, 2012, 04:37 PM
#9
Re: intermediate file multi-process safety
 Originally Posted by S_M_A
The "system" is process safe if you make it so. If you open a file as r/w shared well it's going to be that...
Yes GetTempFilename is windows. In Linux you can use mkstemp or you can use boost::filesystem::unique_path for both systems.
Yes another alternative would be to use an flock() but why use it when synchronization can be avoided. Anyway I like appending the output file name with an extension. And it works just fine.
Thanks all
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|