[En-Nut-Discussion] Sockets
Ralph Mason
ralph.mason at telogis.com
Mon Sep 22 04:52:21 CEST 2003
Same as if two threads waited on any event.
The would both get suspended. The one with the highest priority would get
woken first.
You might like to look at NutEventWait.
Ralph
> -----Original Message-----
> From: en-nut-discussion-admin at egnite.de
> [mailto:en-nut-discussion-admin at egnite.de]On Behalf Of NGB
> Sent: Monday, 22 September 2003 2:24
> To: en-nut-discussion at egnite.de
> Subject: Re: [En-Nut-Discussion] Sockets
>
>
> Out of curiostity what happens if 2 tasks wait on the same socket
> Is it the first one that waits that get's suspended, what happens
> to the other ?
>
> Thanks
>
> Nic
>
>
> Quoting Harald Kipp <harald.kipp at egnite.de>:
>
> >
> > >
> > >I have 1 UDP socket that I needs to be accessed from 2
> threads, 1 thread is
> > >reading from the socket the other writing.
> > >Does ethernut support this ?
> > >Anything I should be aware of ?
> >
> > No known problems. You can share UDP and TCP sockets
> > between threads.
> >
> > Harald
> >
> > _______________________________________________
> > En-Nut-Discussion mailing list
> > En-Nut-Discussion at egnite.de
> > http://www.egnite.de/mailman/listinfo/en-nut-discussion
> >
>
>
>
>
> -------------------------------------------------
>
> _______________________________________________
> En-Nut-Discussion mailing list
> En-Nut-Discussion at egnite.de
> http://www.egnite.de/mailman/listinfo/en-nut-discussion
>
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.515 / Virus Database: 313 - Release Date: 1/09/2003
>
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.515 / Virus Database: 313 - Release Date: 1/09/2003
More information about the En-Nut-Discussion
mailing list