Re: Writing on a common socket from multiple threads
Re: Writing on a common socket from multiple threads
- Subject: Re: Writing on a common socket from multiple threads
- From: Nathan Sims <email@hidden>
- Date: Wed, 01 Jun 2011 16:42:42 -0700
On Jun 1, 2011, at 4:29 PM, Quinn The Eskimo! wrote:
>
> On 1 Jun 2011, at 15:49, Nathan Sims wrote:
>
>> 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?
>
> My guess is that something else is at play here. Sockets are thread-safe at this level, even without your spin lock. That said, there are many other ways to die with an architecture like this.
Hmm, well it's 100% repeatable. I was about to funnel everything through a single common thread, but if sockets are already thread-safe, then there's no need. What are some of the 'other ways to die' that result in a broken pipe error?
_______________________________________________
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