Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Thread safety



Hi Edward,

thanks for pointing that the URL data handler is not thread safe. Maybe it should be written in the TN that this particular handler is not thread safe. Now it looks like it is missing.

I seem to remember that the URL data handler was not thread-safe in QuickTime previous to version 7. So, on if you're not using the techniques outlined in TN2125 < <http://developer.apple.com/technotes/tn/tn2125.html>http://developer.apple.com/technotes/tn/tn2125.html > your milage may vary.

I'd love to use techniques described in TN2125 if there was qtmlclient65.lib. ;)
As far as I can tell, my code is very similar to the code used in ThreadImport except it is done in separate a thread/MPTask.


If you are using the techniques you should see a componentNotThreadSafeErr returned when attempting to open a movie file using this data handler with QuickTime 6.4 - 6.5.x.

I see that the call to [Enter|Exit]MoviesOnThread would probably be accessible even with 6.0 SDK by looking up the appropriate EAX selector for theQTMLDispatcher. May that be right?


Once the Windows SDK (and release) for QT 7 is available you should probably revise your code appropriately and be "safe".

I'm really looking forward for QT7 Win SDK.


Cheers,

  Tomas
--
# Ing. Tomas Zahradnicky, Jr.
# The Czech Technical University
# Dept of Computer Science, FEE-CTU Prague
_______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-API mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quicktime-api/email@hidden

This email sent to email@hidden
References: 
 >Re: Thread safety (From: "Edward Agabeg" <email@hidden>)



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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.