We have an installer that searches for a copy of our application on
user's machines using PBCatalogSearchAsync. Basically for every
mounted volume we spun off a pthread that calls
PBCatalogSearchAsync and in PBCatalogSearchAsync's completion
routine we add the search results to an array(using a mutex).
Is there any particular reason your spinning off threads to call
asynchronous functions? I would just call the synchronous versions
and store the results locally. When the thread terminates, then take
your mutex and dump all the results into your array at once.
--
Reality is what, when you stop believing in it, doesn't go away.
Failure is not an option. It is a privilege reserved for those who try.
David Duncan
_______________________________________________
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