TaiJuWu commented on code in PR #2076:
URL: https://github.com/apache/nuttx-apps/pull/2076#discussion_r1332044013


##########
testing/ostest/spinlock.c:
##########
@@ -46,10 +46,14 @@ static int g_result = 0;
 
 static FAR void thread_spinlock(FAR void *parameter)
 {
+  int pid = *(int *)parameter;
+
   for (int i = 0; i < 10; i++)
     {
       spin_lock(&lock);
+      printf("pid %d get lock g_result:%d\n", pid, g_result);

Review Comment:
   I got it and I add a new rw_spinlock test for future.



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