• 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
Writing on a common socket from multiple threads
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Writing on a common socket from multiple threads


  • Subject: Writing on a common socket from multiple threads
  • From: Nathan Sims <email@hidden>
  • Date: Wed, 01 Jun 2011 15:49:08 -0700

I have a multithreaded Cocoa app that does writev() calls on a background thread; that works fine. But if, in addition, I also make writev() calls on the same socket from another thread, the next writev() call on the first thread blows up with a 'broken pipe' error. I do have an OSSpinLock surrounding each writev() call so only one call occurs at a time.

Does this mean that I can only make writev() calls on a common socket from a single thread, or is there some other issue at play?

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Writing on a common socket from multiple threads
      • From: "Quinn \"The Eskimo!\"" <email@hidden>
  • Prev by Date: Re: CoreWLAN enum changes
  • Next by Date: Re: Writing on a common socket from multiple threads
  • Previous by thread: Re: CoreWLAN enum changes
  • Next by thread: Re: Writing on a common socket from multiple threads
  • Index(es):
    • Date
    • Thread