Forums - QuRT sleep hangs while joining a thread.

1 post / 0 new
QuRT sleep hangs while joining a thread.
ashapiro
Join Date: 30 Dec 13
Posts: 26
Posted: Mon, 2014-09-01 14:13

Hi,

I'm attempting to move some code into a persistent thread but I've come across a problem that calling qurt_timer_sleep() appears to hang if another thread has called qurt_thread_join() on the current thread. The result is that the current thread never exits, and the joining thread never returns from join(). Has anyone experienced this?

I'm only calling sleep in an attempt to simulate the behavior of a timeout with a qurt_sem_try_down(). I have a semaphore that is used to signal a shutdown request from one thread to another, and qurt_sem_up() is called right before qurt_thread_join(). Is there a better way to do this?

Thanks,

Adam

  • Up0
  • Down0

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.