Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: SNIC-xively-jumpstart-demo SNIC-FluentLogger-example TCPEchoServer murataDemo ... more
Fork of YDwifiInterface by
Diff: Socket/UDPSocket.cpp
- Revision:
- 50:cd632a13e4dc
- Parent:
- 43:d80bbb12ffe6
diff -r 3376556ba6ad -r cd632a13e4dc Socket/UDPSocket.cpp
--- a/Socket/UDPSocket.cpp Tue Mar 31 02:50:55 2015 +0000
+++ b/Socket/UDPSocket.cpp Tue Mar 31 02:53:44 2015 +0000
@@ -303,9 +303,17 @@
con_info_p->mutex.lock();
con_info_p->is_receive_complete = true;
con_info_p->mutex.unlock();
- while( con_info_p->is_received == false )
+ if( con_info_p->is_received == false )
{
+ // Try receive
Thread::yield();
+
+ if( con_info_p->is_received == false )
+ {
+ // No data received.
+ FUNC_OUT();
+ return 0;
+ }
}
// Get packet data from buffer for receive.
int i;

Murata TypeYD