anchao commented on code in PR #17534:
URL: https://github.com/apache/nuttx/pull/17534#discussion_r2626646051
##########
libs/libc/misc/lib_backtrace.c:
##########
@@ -88,7 +88,14 @@ struct backtrace_pool_s
* Private Data
****************************************************************************/
-static struct backtrace_pool_s g_backtrace_pool;
+static struct backtrace_pool_s g_backtrace_pool =
+{
+#if defined(CONFIG_BUILD_FLAT) || defined(__KERNEL__)
+ .lock = SP_UNLOCKED,
+#else
+ .lock = NXMUTEX_INITIALIZER,
Review Comment:
where is mutex_t?
<img width="687" height="636" alt="image"
src="https://github.com/user-attachments/assets/efe99d4f-2a5c-4d7d-b16f-75472bfd5791"
/>
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]