Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Mixing THREADSAFE and non-THREADSAFE code in the same
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mixing THREADSAFE and non-THREADSAFE code in the same



Mike wrote:

I cannot find reference anywhere to using non-THREADSAFE code (e.g.,
third-party libraries) along with THREADSAFE code. Is this permissible
in a Carbon app?

If you use non-thread-safe code, you need to get it to execute in the main task (via MPRemoteCall or Carbon Event). I've had to do this to call third-party libraries.

More to the point -- may I use THREADSAFE C/C++/MSL (CodeWarrior)
libraries to create a library containing only an MPTask then use the
latter in a Carbon project with non-THREADSAFE MSL libraries?

My guess is you'll get a lot of link errors -- in MSL, everything has the same name whether it's thread-safe or not.

David Dunham A Sharp email@hidden
Voice/Fax: 206 783 7404 http://a-sharp.com
"People seem to misinterpret complexity as sophistication" -- Niklaus Wirth
_______________________________________________
mt-smp mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/mt-smp
Do not post admin requests to the list. They will be ignored.


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.