• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Does CFRunLoop runs for every thread ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Does CFRunLoop runs for every thread ? (From: Pranav Kumar Sahu <email@hidden>)

  • Prev by Date: Re: Does CFRunLoop runs for every thread ?
  • Next by Date: RE: Re : Validation of IP Address
  • Previous by thread: Re: Does CFRunLoop runs for every thread ?
  • Next by thread: Re: Does CFRunLoop runs for every thread ?
  • Index(es):
    • Date
    • Thread