mirror of
https://github.com/apache/nuttx.git
synced 2026-09-27 10:46:02 +08:00
Cancellation points: Close up some logic to eliminte some race conditions.
This commit is contained in:
+2
-2
@@ -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 */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user