Cancellation points: Close up some logic to eliminte some race conditions.

This commit is contained in:
Gregory Nutt
2016-12-10 08:36:58 -06:00
parent e9d3c3362a
commit bc3ca25cc7
36 changed files with 149 additions and 68 deletions
+2 -2
View File
@@ -126,7 +126,7 @@ ssize_t psock_send(FAR struct socket *psock, FAR const void *buf, size_t len,
/* Treat as a cancellation point */
enter_cancellation_point();
(void)enter_cancellation_point();
switch (psock->s_type)
{
@@ -273,7 +273,7 @@ ssize_t send(int sockfd, FAR const void *buf, size_t len, int flags)
/* send() is a cancellation point */
enter_cancellation_point();
(void)enter_cancellation_point();
/* Get the underlying socket structure */