xiaoxiang781216 commented on code in PR #6608:
URL: https://github.com/apache/incubator-nuttx/pull/6608#discussion_r920770148


##########
net/bluetooth/bluetooth_input.c:
##########
@@ -119,6 +121,8 @@ static int bluetooth_queue_frame(FAR struct 
bluetooth_conn_s *conn,
 
   /* Add the container to the tail of the list of incoming frames */
 
+  flags = enter_critical_section();

Review Comment:
   If you don't need sync with the interrupt handler, net_loc/net_unlock is 
prefer than the crititical section, it's especially the code in net folder.



-- 
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: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to