You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2022/03/12 13:49:11 UTC
[GitHub] [incubator-nuttx] xiaoxiang781216 commented on a change in pull request #5725: Optimize network subsystem initialization
xiaoxiang781216 commented on a change in pull request #5725:
URL: https://github.com/apache/incubator-nuttx/pull/5725#discussion_r825304161
##########
File path: net/utils/net_lock.c
##########
@@ -49,9 +49,9 @@
* Private Data
****************************************************************************/
-static sem_t g_netlock;
-static pid_t g_holder = NO_HOLDER;
-static unsigned int g_count = 0;
+static sem_t g_netlock = SEM_INITIALIZER(1);
+static pid_t g_holder = NO_HOLDER;
+static unsigned int g_count = 0;
Review comment:
Done.
--
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-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org