This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Are Socket Descriptors Thread Safe?
- From: "Jeffrey R. Szczepanski" <jrs at inscitek dot com>
- To: <ecos-discuss at sources dot redhat dot com>
- Date: Fri, 21 May 2004 08:44:42 -0400
- Subject: [ECOS] Re: Are Socket Descriptors Thread Safe?
Sorry for the typo -> I meant BSD based stacks, of course.
Anybody?
Thanks in advance,
-Jeff
----- Original Message -----
From: "Jeffrey R. Szczepanski" <jrs@inscitek.com>
To: <ecos-discuss@sources.redhat.com>
Sent: Thursday, May 20, 2004 10:33 AM
Subject: Are Socket Descriptors Thread Safe?
> In eCos, when using the BSB based network stacks, I am wondering if the
use
> of socket descriptors is thread safe or not? For example, when a socket is
> created for a UDP port, is it safe to have one thread blocking and reading
> on the socket descriptor to pickup incoming datagrams, while another
thread
> uses the same socket descriptor to do writes out on the same socket?
>
> Thanks in advance,
> Jeff
> jrs@inscitek.com
>
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss