Jump to content

How is OnSystemStatus supposed to work?


viper

Recommended Posts

I have a thread that sits on a wait() when I want to send a control to the ISY but isISYReady() == false. In the OnSystemStatus method, if "busy == false", I wake the thread and let it send the control to the ISY. I have never seen a "busy == false" when handling OnSystemStatus. So, once my control sending thread detects isISYReady() == false, it never comes out of the wait.

 

Any suggestions?

 

Tom

Link to comment

Next attempt here. It seems busy == false every time OnSystemStatus is called. Initially, my "control sending thread" would then attempt to send the control. I have now changed it so that if isISYReady() == false, it goes back into the wait. With trace points, I see that more than 90% of the time, the "control sending thread" is getting isISYReady() == false after being woke. In the one instance I saw isISYReady() == true, the control got sent and the light changed state. Just a reminder, I have 8 cores, so there is very little "thread waiting on execution queue".

 

Does any of this make sense?

 

Tom

Link to comment

Archived

This topic is now archived and is closed to further replies.


×
×
  • Create New...