Writing on a common socket from multiple threads
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