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.
Revision 36:2e5eccf30a84, committed 2016-04-20
- Comitter:
- geky
- Date:
- Wed Apr 20 00:46:23 2016 +0000
- Parent:
- 35:8b26e40c6e34
- Commit message:
- Fixe race condition in socket close
Changed in this revision
Socket.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/Socket.cpp Tue Apr 19 18:34:42 2016 -0500 +++ b/Socket.cpp Wed Apr 20 00:46:23 2016 +0000 @@ -52,8 +52,10 @@ if (!_socket) { return 0; } - - void *socket = _socket; + + _iface->socket_attach(_socket, 0, 0); + + void *volatile socket = _socket; _socket = 0; return _iface->socket_close(socket); }