no1wudi edited a comment on pull request #5348:
URL: https://github.com/apache/incubator-nuttx/pull/5348#issuecomment-1022883008


   @yamt In eb1885a7580251c36599b726147f4eb2a8c5ed2a we moved cleanup callbacks 
from tcb to tls_info_s,so we must re-implement the logic (another way is to 
revert eb1885a7580251c36599b726147f4eb2a8c5ed2a) in pthread_cancel.c
   ```
   #ifdef CONFIG_PTHREAD_CLEANUP
     /* Perform any stack pthread clean-up callbacks.
      *
      * REVISIT: In this case, the clean-up callback will execute on the
      * thread of the caller of pthread cancel, not on the thread of
      * the thread-to-be-canceled.  This is a problem when deferred
      * cancellation is not supported because, for example, the clean-up
      * function will be unable to unlock its own mutexes.
      */
   
     pthread_cleanup_popall(tcb);
   #endif
   ```
   Refer to 
   


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