EventManager must NOT be static. During termination, SandeshSession, SandeshClient, SandeshClientSM and its Timers are deleted as part of EventManager destruction. The Timer and TcpSession Client APIs rely on sets of intrusive ptrs, which are also static. We will crash if these sets are deleted before the SandeshSession or Timer objects. This is happening for SandeshClientSM timers during analytics systemless test, and was making the test fail.
Change-Id: If15544364371d9efb8cdca064f17b725ef55af36
Merge "EventManager must NOT be static. During termination, SandeshSession, SandeshClient, SandeshClientSM and its Timers are deleted as part of EventManager destruction. The Timer and TcpSession Client APIs rely on sets of intrusive ptrs, which are also static. We will crash if these sets are deleted before the SandeshSession or Timer objects. This is happening for SandeshClientSM timers during analytics systemless test, and was making the test fail. Change-Id: If15544364371d9efb8cdca064f17b725ef55af36"