poco/Util
Vojin Ilic b8d1792fa0 Fix hang in destructor
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
2023-04-04 12:08:49 +02:00
..
cmake fix issue #3815 (#3932) 2023-01-27 05:25:31 -06:00
include/Poco/Util Changes to POCO_APP_MAIN in Poco::Util::Application which allows for compiling a Poco App for a VxWorks RTP (#3764) 2022-08-21 23:31:48 -05:00
samples Remove trailing whitespace (#3668) 2022-07-07 04:18:20 -05:00
src Fix hang in destructor 2023-04-04 12:08:49 +02:00
testsuite Fix hang in destructor 2023-04-04 12:08:49 +02:00
CMakeLists.txt Devel (#3586) 2022-05-15 11:05:56 -05:00
dependencies Add JSONConfiguration 2012-05-03 20:12:28 +00:00
Makefile Added LocalConfigurationView to only search inside the viewed scope (#3529) 2022-05-26 09:40:13 -05:00
Util_vs90.sln change EOL to 'native' 2012-04-29 18:52:25 +00:00
Util_vs90.vcproj Added missing closing </File> tags (#3610) 2022-05-27 08:35:26 -05:00
Util_vs140.sln re-generated project files 2020-01-11 22:33:28 +01:00
Util_vs140.vcxproj Added LocalConfigurationView to only search inside the viewed scope (#3529) 2022-05-26 09:40:13 -05:00
Util_vs140.vcxproj.filters Added LocalConfigurationView to only search inside the viewed scope (#3529) 2022-05-26 09:40:13 -05:00
Util_vs150.sln re-generated project files 2020-01-11 22:33:28 +01:00
Util_vs150.vcxproj Added LocalConfigurationView to only search inside the viewed scope (#3529) 2022-05-26 09:40:13 -05:00
Util_vs150.vcxproj.filters Added LocalConfigurationView to only search inside the viewed scope (#3529) 2022-05-26 09:40:13 -05:00
Util_vs160.sln re-generated project files 2020-01-11 22:33:28 +01:00
Util_vs160.vcxproj Added LocalConfigurationView to only search inside the viewed scope (#3529) 2022-05-26 09:40:13 -05:00
Util_vs160.vcxproj.filters Added LocalConfigurationView to only search inside the viewed scope (#3529) 2022-05-26 09:40:13 -05:00
Util_vs170.sln ProGen vs170 projects with Win32,x64,ARM64 (#3612) 2022-05-27 21:58:46 -05:00
Util_vs170.vcxproj ProGen vs170 projects with Win32,x64,ARM64 (#3612) 2022-05-27 21:58:46 -05:00
Util_vs170.vcxproj.filters Added LocalConfigurationView to only search inside the viewed scope (#3529) 2022-05-26 09:40:13 -05:00
Util.progen chore(ProGen): MSVC does not properly recognize std version #3665 2022-07-06 11:39:47 +02:00