[ Description ]
This PR contains fixes of issues previous PR caused, these were:
the gateway integration test failed in case threading module was turned on. This affected on libxively with gw and threading module both enabled.
gcc compilation issues
not stable gateway itest caused by usage of already deallocated memory.
These were solved by removing using separate thread for callbacks between the two internal layer chains: main layerchain and the edge device layerchain.
The gcc issue was a little bit more tricky: I had to remove not used include from the mock broker which resulted favourable simplification but also I had to adapt test cases to this mock broker change.
The memory problem was solved by strict "object" lifetime eye-o-scopic pursuit :)
[ Description ] This PR contains fixes of issues previous PR caused, these were:
These were solved by removing using separate thread for callbacks between the two internal layer chains: main layerchain and the edge device layerchain. The gcc issue was a little bit more tricky: I had to remove not used include from the mock broker which resulted favourable simplification but also I had to adapt test cases to this mock broker change. The memory problem was solved by strict "object" lifetime eye-o-scopic pursuit :)
[ JIRA ] https://jira.ops.expertcity.com/browse/XCL-2939
[ Reviewer ] @DellaBitta
[ QA ] All Travis targets and tests pass.
[ Release Notes ] n/a