linguini1 commented on issue #17052:
URL: https://github.com/apache/nuttx/issues/17052#issuecomment-3321608473

   A common tactic I see used to suspend threads is the use of semaphores. You 
could have a semaphore in your thread that causes it to block, then it will be 
suspended until you `post` that semaphore.
   
   Additionally, you could use a condvar to suspend the thread until some 
condition is true. Not sure how it fits into your application.
   
   Both of these mechanisms are available in pthreads.


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