Merge pull request #3619 from geky/nsapi-fix-initial-events

nsapi: Change initial state of sockets to allow events
pull/3692/head
Sam Grove 2017-02-07 10:31:57 -06:00 committed by GitHub
commit 2b6fed7b73
6 changed files with 6 additions and 6 deletions

View File

@ -18,7 +18,7 @@
#include "mbed.h"
TCPServer::TCPServer()
: _pending(1), _accept_sem(0)
: _pending(0), _accept_sem(0)
{
}

View File

@ -46,7 +46,7 @@ public:
*/
template <typename S>
TCPServer(S *stack)
: _pending(1), _accept_sem(0)
: _pending(0), _accept_sem(0)
{
open(stack);
}

View File

@ -19,7 +19,7 @@
#include "mbed_assert.h"
TCPSocket::TCPSocket()
: _pending(1), _read_sem(0), _write_sem(0),
: _pending(0), _read_sem(0), _write_sem(0),
_read_in_progress(false), _write_in_progress(false)
{
}

View File

@ -45,7 +45,7 @@ public:
*/
template <typename S>
TCPSocket(S *stack)
: _pending(1), _read_sem(0), _write_sem(0),
: _pending(0), _read_sem(0), _write_sem(0),
_read_in_progress(false), _write_in_progress(false)
{
open(stack);

View File

@ -19,7 +19,7 @@
#include "mbed_assert.h"
UDPSocket::UDPSocket()
: _pending(1), _read_sem(0), _write_sem(0)
: _pending(0), _read_sem(0), _write_sem(0)
{
}

View File

@ -45,7 +45,7 @@ public:
*/
template <typename S>
UDPSocket(S *stack)
: _pending(1), _read_sem(0), _write_sem(0)
: _pending(0), _read_sem(0), _write_sem(0)
{
open(stack);
}