poco/Util
Vojin Ilic 46a55303ae Fix deadlock in Timer when one sync and one async cancel requests are issued
Timer is implemented with internal queue. If a user wants to cancel all pending tasks it can call .cancel to schedule CancelNotification.
As a part of processing of CancelNotification it will just flush the whole queue. It does have special processing for StopNotification so that Timer destruction doesn't get blocked.
Now if we first schedule async cancel and before this first cancel is processed we schedule another cancel but this time a sync second one will block because it is never notified that all tasks are canceled, _finished event is never set on that flushed CancelNotification.

Fix: add diffrent processing in case of CancelNotification to set all of it's _finished events.
Also add a test for this situation.
2023-01-16 11:53:11 +01:00
..
cmake Do not overwrite CMAKE_PREFIX_PATH in component config files. 2015-02-04 04:35:23 +01: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 deadlock in Timer when one sync and one async cancel requests are issued 2023-01-16 11:53:11 +01:00
testsuite Fix deadlock in Timer when one sync and one async cancel requests are issued 2023-01-16 11:53:11 +01: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