poco/Foundation/testsuite
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
..
data new trunk (base for 1.5) 2012-04-23 01:14:34 +00:00
src Fix hang in destructor 2023-04-04 12:08:49 +02:00
CMakeLists.txt fix(cmake): TestLibrary debug postfix 2022-06-02 08:18:40 -05:00
Makefile Remove \$Id`$ headers 2017-09-09 11:14:06 +02:00
Makefile-Driver merged GH #2641: Implement DataURIStream for extracting data from data URIs 2020-01-24 10:41:35 +01:00
Makefile-TestApp Remove \$Id`$ headers 2017-09-09 11:14:06 +02:00
Makefile-TestLibrary Remove \$Id`$ headers 2017-09-09 11:14:06 +02:00
nonexistent.txt new trunk (base for 1.5) 2012-04-23 01:14:34 +00:00
TestApp_vs140.vcxproj Devel (#3586) 2022-05-15 11:05:56 -05:00
TestApp_vs140.vcxproj.filters added project and solution files for VS2015 2015-08-01 10:29:32 +02:00
TestApp_vs150.vcxproj Devel (#3586) 2022-05-15 11:05:56 -05:00
TestApp_vs150.vcxproj.filters added Visual Studio 2017 project files 2017-02-20 16:20:16 +01:00
TestApp_vs160.vcxproj chore(ProGen): MSVC does not properly recognize std version #3665 2022-07-06 11:39:47 +02:00
TestApp_vs160.vcxproj.filters fix projects 2020-01-11 13:07:11 +01:00
TestApp_vs170.vcxproj Remaining changes for Windows on ARM64 support (#3608) 2022-05-26 22:40:30 -05:00
TestApp_vs170.vcxproj.filters added VS2022 project files 2022-02-19 21:06:24 +01:00
TestLibrary_vs140.vcxproj Devel (#3586) 2022-05-15 11:05:56 -05:00
TestLibrary_vs140.vcxproj.filters added project and solution files for VS2015 2015-08-01 10:29:32 +02:00
TestLibrary_vs150.vcxproj Devel (#3586) 2022-05-15 11:05:56 -05:00
TestLibrary_vs150.vcxproj.filters added Visual Studio 2017 project files 2017-02-20 16:20:16 +01:00
TestLibrary_vs160.vcxproj chore(ProGen): MSVC does not properly recognize std version #3665 2022-07-06 11:39:47 +02:00
TestLibrary_vs160.vcxproj.filters fix projects 2020-01-11 13:07:11 +01:00
TestLibrary_vs170.vcxproj Remaining changes for Windows on ARM64 support (#3608) 2022-05-26 22:40:30 -05:00
TestLibrary_vs170.vcxproj.filters added VS2022 project files 2022-02-19 21:06:24 +01:00
testlibrary.opt new trunk (base for 1.5) 2012-04-23 01:14:34 +00:00
TestSuite_vs140.vcxproj Devel (#3586) 2022-05-15 11:05:56 -05:00
TestSuite_vs140.vcxproj.filters updated project files 2020-01-24 10:51:17 +01:00
TestSuite_vs150.vcxproj Devel (#3586) 2022-05-15 11:05:56 -05:00
TestSuite_vs150.vcxproj.filters updated project files 2020-01-24 10:51:17 +01:00
TestSuite_vs160.vcxproj chore(ProGen): MSVC does not properly recognize std version #3665 2022-07-06 11:39:47 +02:00
TestSuite_vs160.vcxproj.filters updated project files 2020-01-24 10:51:17 +01:00
TestSuite_vs170.vcxproj Remaining changes for Windows on ARM64 support (#3608) 2022-05-26 22:40:30 -05:00
TestSuite_vs170.vcxproj.filters added VS2022 project files 2022-02-19 21:06:24 +01:00