Mailing Lists: Apple Mailing Lists

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

Threading Question?



Hi,

I have a Carbon Dynamic Library (built using XCode) that is a plug-in to another application. Basically it uses QuickTime to grab frames of a movie and then analyzes each frame and produces a report at the end.

It works really well, except that it hogs the processor and the host application is locked out until the end of the movie.

What I would like to be able to do is to Start up a new thread when I get called and have this process the movie. The host application would then "poll" via a "Are you done?" API which would return "no" until the other thread had finished?

How can I go about doing this? What documents should I look at? What is the recommend API to use? Is there any sample code I could look at?

Any advice greatly appreciated.

All the Best
Dave


_______________________________________________ Do not post admin requests to the list. They will be ignored. Carbon-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to 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.