anchao commented on code in PR #17955:
URL: https://github.com/apache/nuttx/pull/17955#discussion_r2706497556


##########
sched/addrenv/addrenv.c:
##########
@@ -217,7 +218,7 @@ FAR struct addrenv_s *addrenv_allocate(void)
     {
       /* Take reference so this won't get freed */
 
-      addrenv->refs = 1;
+      atomic_set(&addrenv->refs, 1);

Review Comment:
   could we keep to original? Some platforms' atomic operations are rather 
time-consuming, especially on custom chips that do not support atomic 
operations.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to