I was looking at some of the refactoring in Skim, and noticed that the file functions are supposed to be thread safe. Isn't there a potential race condition in SKTemporaryDirectoryCreating, if multiple threads are creating baseTmpDir or incrementing a counter to find a unique name? In BibDesk's NSFileManager method we use @synchronized(self) to guard against that, but the function might need a mutex created in an __attribute__((constructor)) (or use CFUUID to make a unique name).
-- adam ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ skim-app-develop mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/skim-app-develop
