pkarashchenko commented on code in PR #10752:
URL: https://github.com/apache/nuttx/pull/10752#discussion_r1335006078


##########
include/pthread.h:
##########
@@ -136,7 +136,7 @@
 
 /* Used to initialize a pthread_once_t */
 
-#define PTHREAD_ONCE_INIT             (false)
+#define PTHREAD_ONCE_INIT             {false, PTHREAD_MUTEX_INITIALIZER}

Review Comment:
   I think taking into account `once` state value I do not expect more than one 
level of nesting.



-- 
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