am 21.11.2005 17:07 Uhr schrieb Sufang Zhao unter
sufang.zhao@opti...:
> Hi,
> I have trying to make multiple threads detect the same async callback
> by registering the callback with
>
> error = (*mCamNode)->AddCallbackDispatcherToRunLoopForMode(mCamNode,
> CFRunLoopGetCurrent(), kCFRunLoopCommonModes) ;
>
> in my main thread. When I start the runloop with
>
> error=CFRunLoopRunInMode(kCFRunLoopCommonModes,10,true);
>
> the callback gets called correctly in the main thread, but if I start
> the runloop from any other thread, I always receive "run loop mode
> has no sources or timers" .
> Can anyone share your experience please? thanks
>
> Sufang
>
> The Cooke Corporation
Hi Sufang,
I would try to "distribute" the callback infromation using
semaphores/mutexes from the POSIX threads instead of fiddling with the
runloops.
Just an idea.
Regards,
Christian
--
"Oh screw it, let's do it!"
Inofficial business strategy of Virgin
#---------------------------------#
|
Ch.Koch@gmx.... |
| Prof.-Köhler-Str. 5 |
| 98693 Ilmenau |
| Germany |
| Tel.: 03677 896742 |
| Fax.: 03677 896745 |
| PGP-ID: 0x110B6087 (any server) |
#---------------------------------#
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Firewire mailing list (
Firewire@list...)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/firewire/subscriber%40opensubscriber.com
This email sent to
subscriber@open...
opensubscriber is not affiliated with the authors of this message nor responsible for its content.