Re: Does CFRunLoop runs for every thread ?
Re: Does CFRunLoop runs for every thread ?
- Subject: Re: Does CFRunLoop runs for every thread ?
- From: Becky Willrich <email@hidden>
- Date: Tue, 22 Apr 2003 08:20:03 -0700
I have an multithreaded application. For each thread there is a
CFRunLoop.
But it does not respond to events by calling my callback. If I do a
CFRunLoopRun(), then it works fine. Does it mean the CFRunLoop
attached to
each thread(while thread is created) is only created and we need to
run it
manually. If so is there a way, that I can run my runloop when I
create a
thread ?
It depends on the context - for instance, the Carbon & Cocoa UI
frameworks both run the run loop on the main thread (the one that does
the drawing) for you. In general, however, you must manually run the
run loop on auxiliary threads, or on all threads in a non-UI
application. Since you aren't getting your callbacks, I'm guessing
you're in a situation where you need to run the run loop yourself.
REW
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.