Home/Support/Support Forum/tx_thread_sleep hangs with non-zero parameter
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

tx_thread_sleep hangs with non-zero parameter

+1 vote
I'm having an odd problem when I call tx_thread_sleep. If I pass it anything other than zero, it hangs forever. Any ideas on what I'm doing wrong?

I'm using:
Digi ESP for NET+OS
Version: 1.4.0
Build id: 03132009 NET+OS 7.4.2
asked Mar 25, 2010 in NET+OS by burl New to the Community (17 points)
recategorized Nov 26, 2013 by tuxembb

Please log in or register to answer this question.

3 Answers

0 votes
Where are you in your code, when this happens? Are you in an ISR or otherwise in interrupt context?
answered Mar 25, 2010 by dakotas_dad Veteran of the Digi Community (694 points)
0 votes
Nope, just in the normal loop.
answered Mar 25, 2010 by burl New to the Community (17 points)
0 votes
After some experimenting, it appears I caused the problem when I created another thread. Its looking like it takes priority over the root thread & never relinquishes the processor.
answered Mar 26, 2010 by burl New to the Community (17 points)
Hi i am facing the same issue for quite a while now. Could you tell me why does the low priority thread you created take priority over the root thread automatically and never relinquishes the processor? In Debug mode the processor hangs after I execute the tx_thread_sleep(1) line, so i have no way of knowing if the other thread has taken control of the processor or not.