• 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: Is there two streams with CFReadStreamRead happend in two threads?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is there two streams with CFReadStreamRead happend in two threads?


  • Subject: Re: Is there two streams with CFReadStreamRead happend in two threads?
  • From: Jean-Daniel Dupas <email@hidden>
  • Date: Tue, 19 May 2009 09:44:12 +0200


Le 19 mai 09 à 09:27, Chris Gardner a écrit :


Hi,

Now I have created two threads and want to download files through the method below in each thread:



1. Create the stream using CFReadStreamCreateWithFTPURL()

2. Set up my callbacks wiht CFReadStreamSetClient()

3. Add it to the run-loop wiht CFReadStreamScheduleWithRunLoop()

4. Open the stream with CFRendStreamOpen()

5. Implement CFRunLoopRun()



Why do you create a second thread ? just schedule the both stream on the main thread and they will be downloaded simultaneously on the main thread. (And don't cross post)_______________________________________________


Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Is there two streams with CFReadStreamRead happend in two threads? (From: Chris Gardner <email@hidden>)

  • Prev by Date: Is there two streams with CFReadStreamRead happend in two threads?
  • Next by Date: Re: Slow scrolling after NSPopup implementation
  • Previous by thread: Is there two streams with CFReadStreamRead happend in two threads?
  • Next by thread: [ANN] KNAppGuide - an open source in-app tutorial framework
  • Index(es):
    • Date
    • Thread