SAH-1528: Start tracker thread when timer thread starts
1. What this MR does / why we need it:
- In the tmc-integration-mid testing, one edge case was observed. Once the command is invoked on subsystem, the transitional obstate event (RESOURCING, CONFIGURING, etc.) are received on CSP Subarray Leaf Node, even before the tracker thread is started. And thus the transitional obstate event is not received by the tracker thread and the commnd timeout occurs. The solution discussed was to start the tracker thread, before the command is invoked on subsystem (at the same place where timer thread starts). Similar solution is implemented on SDP Subarray Leaf Node.
2. Make sure that you've checked the boxes below before you submit MR:
-
No conflict with master branch. -
Merge Request Title appropriate. -
Unit/Integration tests added and existing test cases are passing. -
Variable and Function names state the purpose. -
There is no commented out code, print/debug statements. -
Logs are added wherever necessary. -
Exception is handled wherever required.