In article (Dans l'article) <Q1ARa.42777$ XXXX@XXXXX.COM >,
"Patrick Girard" < XXXX@XXXXX.COM > wrote (rivait)
>> Could you be more precise with file i/o? For file access i use the
>> ugly FSRefs(and friends) so is this safe? I have a couple of unit tests and
>> all run flawlessly. Can I assume that everything is right?
The problem is the thread safety of APIs.
Large parts of the Carbon APIs and the Cocoa APIs, and some POSIX APIs are
not thread safe.
So you'd better check the APIs. For the File Manager and Carbon APIs, you
can look here:
I think I read somewhere that more and more functions were thread safe but
Apple doesn't publish actualized lists AFAIK.
Concerning the MSL, I read in this group that you need to compile it with a
proper flag because some shared accesses are not protected by a mutex by
default for performance reasons.
Philosophie de baignoire - consultations sur rendez-vous.