zyfeier commented on code in PR #14465:
URL: https://github.com/apache/nuttx/pull/14465#discussion_r1812534128


##########
sched/semaphore/sem_destroy.c:
##########
@@ -72,10 +74,18 @@ int nxsem_destroy(FAR sem_t *sem)
    * leave the count unchanged but still return OK.
    */
 
-  if (sem->semcount >= 0)
+  do
     {
-      sem->semcount = 1;

Review Comment:
   Yes, this patch only optimizes the mutex performance of the kernel, while 
the performance optimization of the userspace will be implemented in subsequent 
patches.



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

Reply via email to