debug version

Dependents:   HTTPClient_WiFi_HelloWorld_src

Fork of SNICInterface by muRata

Revision:
39:a1233ca02edf
Parent:
38:f13e4e563d65
Child:
40:b6b10c22a121
diff -r f13e4e563d65 -r a1233ca02edf Socket/UDPSocket.cpp
--- a/Socket/UDPSocket.cpp	Wed Jun 25 00:04:11 2014 +0000
+++ b/Socket/UDPSocket.cpp	Tue Jul 15 02:08:42 2014 +0000
@@ -15,19 +15,9 @@
  * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  */
-/******************* Murata Manufacturing Co.,Ltd. 2014 *****************
- *
- * Filename:   UDPSocket.cpp
- *
- * Purpose:    This module has implementation of UDP socket.
- *              
- * $Author: kishino $
- *
- * $Date: 2014/03/26 $
- *
- * $Revision: 0.0.0.1 $
- * ***********************************************************************/
-
+/* Copyright (C) 2014 Murata Manufacturing Co.,Ltd., MIT License
+ *  port to the muRata, SWITCH SCIENCE Wi-FI module TypeYD-SNIC UART.
+ */
 #include "Socket/UDPSocket.h"
 #include <cstring>
 
@@ -269,7 +259,9 @@
 
     if( con_info_p->recvbuf_p->isEmpty() )
     {
+        con_info_p->mutex.lock();
         con_info_p->is_received = false;
+        con_info_p->mutex.unlock();
     }
 
     return i;