• 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: 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.

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

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