[En-Nut-Discussion] UdpReceiveFrom() blocking?
Radek Podgorny
radek at podgorny.cz
Mon Nov 8 15:49:03 CET 2004
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello,
my previous problem seems to be resolved so in order to keep you busy,
here's another one... :-)
It looks like the UdpReceiveFrom() function blocks even when I use it with
timeout = 0. A fast look over the source revealed there's a call to
NutEventWait() which switches threads regardless of the timeout value.
Maybe I just got it all wrong... I know the timeout value is limited by
the system timer granularity but 0 should be a special case. Just look if
there's data available, and if not, just return immediately (no events and
thread switches)...
Radek
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
iD8DBQFBj4df7mej6pjlbYQRAraRAJ4h0Xcp7VAgqEtDsu23a/+nR4GqigCgqv6K
lMRAv73s34JgHUyuTD21WEo=
=bX0D
-----END PGP SIGNATURE-----
More information about the En-Nut-Discussion
mailing list