mirror of
https://github.com/pocoproject/poco.git
synced 2025-02-21 06:37:42 +01:00

Consider following situation. A class owns a timer. In destructor of that class we call .cancel() asynchronous on timer before it's destruction. Now timer is executing cancel in it's own internal thread, while it's doing that destructor of timer is called from owning class. Timer destructor enqueues stop notification. If that enqueue is happening just after while loop from cancel notification, stop notification is gonna be dropped and timer will never stop. fixes #3986 Co-authored-by: Vojin Ilic <vilic@nvidia.com>