You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "xiaoxiang781216 (via GitHub)" <gi...@apache.org> on 2023/09/20 11:50:20 UTC
[GitHub] [nuttx] xiaoxiang781216 commented on a diff in pull request #10681: pthread_once: use mutex replace sched_[un]lock
xiaoxiang781216 commented on code in PR #10681:
URL: https://github.com/apache/nuttx/pull/10681#discussion_r1331512246
##########
libs/libc/pthread/pthread_once.c:
##########
@@ -61,6 +61,8 @@
*
****************************************************************************/
+static mutex_t g_lock = NXMUTEX_INITIALIZER;
Review Comment:
let's use rmutex_t to support init_routine recursive.
--
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