39 Commits

Author SHA1 Message Date
51b550ae26 add LeakDetector 2023-08-06 10:43:14 +09:00
2c671d65c4 wrap class defs in cc files with anonymous namespace 2023-08-06 10:28:29 +09:00
1bcbd786f5 add nf7::Value::operator== 2023-08-06 07:38:10 +09:00
4fd6b17936 enhance Exception to print exception stack on stream 2023-08-05 20:41:04 +09:00
2aef087d02 add SimpleTaskQueue::WaitForEmpty() 2023-08-05 11:17:25 +09:00
3089bccf55 add copy-constructor version of Observer::Target::Notify 2023-08-01 21:15:55 +09:00
eafa05fbf5 remove fields from DealerMeta
they are unnecessary because lambda no longer has multiple takers/makers
2023-08-01 21:15:55 +09:00
03981f2cd9 add noexcept specifier to Observer::Notify() methods 2023-08-01 20:49:16 +09:00
7663ed9dea remove Taker::onTake() 2023-08-01 20:48:19 +09:00
988c77654f replace MakeValue functions to Value::Make methods 2023-07-30 20:48:29 +09:00
3caa4f5ab7 expose Task::shared_from_this() to child classes 2023-07-30 00:07:35 +09:00
c3a47522f2 simplify complex typenames by using keyword 2023-07-30 00:07:35 +09:00
7bae09b269 update WrappedTaskQueue to keep internal as shared_ptr instead of unique_ptr 2023-07-29 22:02:44 +09:00
6125f12384 move task context definitions to new file under iface/common 2023-07-29 10:25:18 +09:00
c58d2bb1e5 simplify code of Task by downgrading parameter feature 2023-07-29 10:07:07 +09:00
a5c040684a replace static_assert bad complex idiom with simpler one 2023-07-24 21:39:55 +09:00
0b35857456 fix integer overflow while a unittest, SimpleTaskQueue.PushAndDrive 2023-07-24 05:47:55 +09:00
e444b4f417 Revert "remove WrappedTaskQueue"
This reverts commit b998b0cf453be6da966d67ff6b9015d5b2fb3efd.
2023-07-24 05:28:54 +09:00
0a97f0e3ae fix compile errors 2023-07-23 21:23:47 +09:00
b998b0cf45 remove WrappedTaskQueue 2023-07-23 16:18:12 +09:00
11c1a8eea0 allow Task to take parameters 2023-07-23 16:03:26 +09:00
a2c6604816 add WrappedTaskQueue 2023-07-23 11:40:11 +09:00
a97274aa0c replace MOCK_METHODn to MOCK_METHOD 2023-07-22 11:43:24 +09:00
c7e9ad17ad rename Task::Exec() to Task::operator() 2023-07-22 11:38:58 +09:00
311fbef5a4 add SimpleTaskQueue 2023-07-22 11:38:58 +09:00
0ffac63089 rename Task::Run() to Exec() 2023-07-20 05:46:47 +09:00
ee3e0a2a51 separate an implementation from nf7::Container 2023-07-18 06:35:21 +09:00
b7f5362095 allow Future::ThenAnd() to be used without specifying template parameter 2023-07-17 21:45:35 +09:00
63911d448d add Task and TaskQueue 2023-07-17 21:43:35 +09:00
07209204b9 add unittests for moving/copying Completer 2023-07-17 06:06:02 +09:00
172efc758f add assertions to prevent use of empty Completer 2023-07-17 06:05:32 +09:00
e83ec3ef77 add Future::Then/ThenAnd/Catch methods 2023-07-16 21:32:03 +09:00
d35a96ca28 make Future::Completer copy-constructible 2023-07-16 21:23:47 +09:00
2bb475bbcb update Future::value() to throw exception when it has 2023-07-16 20:36:53 +09:00
15c7d3b890 improve Future to take internal instance in listener callback 2023-07-16 11:55:04 +09:00
3b1e66babe add Value 2023-07-16 10:51:41 +09:00
728a4c3365 add Dealer interfaces 2023-07-15 22:49:25 +09:00
6cda20c93c add Container 2023-07-15 15:12:41 +09:00
52abaeea1b move generic types into subdir 2023-07-15 15:12:41 +09:00