anchao commented on PR #10681: URL: https://github.com/apache/nuttx/pull/10681#issuecomment-1729278459
For programs with the dependencies logic in pthread_once callback , using global locks may cause deadlock: ``` task A pthread_once() | |-> nxrmutex_lock(&g_lock); -> init_routine(); // callback to wait task B task B pthread_once() | ->nxrmutex_lock(&g_lock); // Deadlock ->init_routine(); // hold resource to wake up task A ``` -- 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