Closed AlexanderGrissik closed 3 months ago
When sock_stats was static its destructor was called before xlio_exit that destroys the internal-thread which destroys sockets.
We should avoid having global objects with untrivial constructors/destructors, since there is no control of their execution order.
Functionality
What kind of change does this PR introduce?
Description
When sock_stats was static its destructor was called before xlio_exit that destroys the internal-thread which destroys sockets.
What
We should avoid having global objects with untrivial constructors/destructors, since there is no control of their execution order.
Why ?
Functionality
Change type
What kind of change does this PR introduce?
Check list