You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2022/01/27 06:17:40 UTC

[GitHub] [incubator-nuttx] no1wudi edited a comment on pull request #5348: Revert user space / kernel space isolation for pthread_exit

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: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org