pkarashchenko commented on code in PR #10752: URL: https://github.com/apache/nuttx/pull/10752#discussion_r1335021506
########## 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: The POSIX specifies: ``` If init_routine recursively calls pthread_once() with the same once_control, the recursive call will not call the specified init_routine, and thus the specified init_routine will not complete, and thus the recursive call to pthread_once() will not return. ``` Not sure how that should be treated. Especially the last sentence `the recursive call to pthread_once() will not return.` -- 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