mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-13 18:45:10 +01:00
b8d1792fa0
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 owner's destructor. 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. Fix: Add new method in TimedNotificationQueue which will return a notification regardless of the time it needs to be executed. Get number of pending tasks in the queue. Flush out that many notifications from queue while taking special consideration of pending Stop and Cancel notifications. Add test for new method in TimedNotificationQueue and fix cancel all tests to actually check if notification got executed. fixes #3986 |
||
---|---|---|
.. | ||
cmake | ||
include/Poco/Util | ||
samples | ||
src | ||
testsuite | ||
CMakeLists.txt | ||
dependencies | ||
Makefile | ||
Util_vs90.sln | ||
Util_vs90.vcproj | ||
Util_vs140.sln | ||
Util_vs140.vcxproj | ||
Util_vs140.vcxproj.filters | ||
Util_vs150.sln | ||
Util_vs150.vcxproj | ||
Util_vs150.vcxproj.filters | ||
Util_vs160.sln | ||
Util_vs160.vcxproj | ||
Util_vs160.vcxproj.filters | ||
Util_vs170.sln | ||
Util_vs170.vcxproj | ||
Util_vs170.vcxproj.filters | ||
Util.progen |