Re: Does CFRunLoop runs for every thread ?
Re: Does CFRunLoop runs for every thread ?
- Subject: Re: Does CFRunLoop runs for every thread ?
- From: Quinn <email@hidden>
- Date: Tue, 22 Apr 2003 16:31:05 +0100
At 17:45 +0530 22/4/03, Pranav Kumar Sahu wrote:
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 ?
Every thread has a runloop. The runloop only runs if you tell it to,
typically by calling CFRunLoopRun. If you need to start a thread
that runs a runloop, just have the thread's main entry point call
CFRunLoopRun.
S+E
--
Quinn "The Eskimo!" <
http://www.apple.com/developer/>
Apple Developer Technical Support * Networking, Communications, Hardware
_______________________________________________
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.