1
0
mirror of https://github.com/wqking/eventpp.git synced 2025-01-14 08:37:56 +08:00

127 Commits

Author SHA1 Message Date
devbharat$
3db30ce5e8 Test setCallbackList 2022-04-29 14:50:39 +02:00
wqking
de833acfb4 Updated CATCH2 to v2.13.9 2022-04-29 08:04:02 +08:00
wqking
ad6b796b73 Removed unused #include from test files 2022-03-30 21:12:38 +08:00
wqking
73a0f0a275 Added instruction for using vcpkg 2022-03-15 09:33:22 +08:00
wqking
0be1fb815b Added cmake-pkg-demo to demonstrate using eventpp as CMake package 2022-03-11 17:17:07 +08:00
wqking
05f3dc8249 Removed redundant std::forward that may cause objects moved unexpectedly 2022-02-01 09:21:45 +08:00
wqking
3e7df6ec2c Added Visual Studio 2022 generator in CMake for tests 2022-01-26 15:51:46 +08:00
wqking
bf39d6593d Merge branch 'master' into development 2022-01-03 10:17:15 +08:00
wqking
9ba1bfb1f1 Added function processUntil in EventQueue 2022-01-03 10:13:14 +08:00
wqking
5eaf23ea40 Refactored remove functions in ScopedRemover. Added unit tests. 2021-11-15 20:14:49 +08:00
Wang Qi
b565e03998
Merge pull request #33 from Martinii89/feature/scoped_remover_manual_remove
Added function for removing from scoped remover before destruction
2021-11-14 15:50:07 +08:00
Martin N
ed5d82504e Added function for removing from scoped remover before destruction 2021-11-13 22:49:15 +01:00
wqking
b502522182 Add move constructor and move assignment operator to ScopedRemover 2021-11-13 09:15:53 +08:00
wqking
00def93a71 Improved argumentAdapter document to avoid misleading 2021-11-11 13:50:01 +08:00
wqking
32197674a4 Expose function front() in OrderedQueueList to avoid compile error 2021-11-01 16:22:19 +08:00
wqking
7fe8fa8e08 Fixed compile error that eventpp::SingleThreading::Atomic::exchange was not defined 2021-10-30 18:46:07 +08:00
wqking
115dae57db Predictor in EventQueue::processIf can have no parameters. 2021-10-28 20:46:41 +08:00
wqking
b4a308b95e Added function hasAnyListener in EventDispatcher and HeterEventDispatcher 2021-07-21 13:43:59 +08:00
wqking
6abae8057b Merge branch 'development' 2021-02-10 21:55:01 +08:00
wqking
03bc300728 Updated documents 2021-02-01 09:24:15 +08:00
wqking
a3f5068945 Fixed typos 2021-01-31 19:33:20 +08:00
wqking
408c9694fd Added storage comparison in AnyId 2021-01-31 16:54:25 +08:00
wqking
745126f835 Replaced AnyHashable with AnyId 2021-01-30 19:17:49 +08:00
wqking
5de1447e83 Added AnyHashable and AnyHashableValue 2021-01-29 21:32:57 +08:00
wqking
5d72f6cfef Fixed a potential compile issue in EventQueue::enqueue that happens when the EventType has a template type conversion constructor 2021-01-29 15:53:21 +08:00
wqking
b71c8c968d Add conditionalFunctor, update documents 2021-01-26 16:30:48 +08:00
wqking
a29bad99ff Comment out __debugbreak related test code 2021-01-20 21:06:05 +08:00
wqking
bd99487ea0 Add shared pointer support, document, and tutorial for ArgumentAdapter 2021-01-20 20:59:29 +08:00
wqking
584f072895 Add ArgumentAdapter 2021-01-19 15:15:27 +08:00
wqking
c618130069 Add unit tests 2020-12-27 21:05:21 +08:00
wqking
6b8278e205 Add getter functions in EventQueue::QueuedEvent 2020-12-21 10:56:25 +08:00
wqking
35054233ed Add unit tests 2020-12-11 09:45:23 +08:00
wqking
10c1c4d4c0 Add pthread dependency to tutorials 2020-12-04 19:53:59 +08:00
wqking
5b192cb89c Separated unit tests and tutorials. 2020-12-04 19:45:43 +08:00
wqking
5616403b02 Fixed compile error. Added comments in tutorial code. 2020-11-26 20:52:03 +08:00
wqking
009685db6e Added policy QueueList and OrderedQueueList 2020-11-26 20:41:00 +08:00
wqking
2736ebb93d Added CI badge in readme. 2020-07-11 08:48:00 +08:00
Olivier LDff
554f42a80f Ci working for ubuntu-latest & windows-latest. macOs-latest in not working for now. 2020-07-09 13:41:17 +02:00
wqking
95911814bd Added parameterized conditional callback in ConditionalRemover. Added unit tests. 2020-07-07 18:56:57 +08:00
wqking
864f048aee Fixed an unnoticed potential segfault bug 2020-07-02 12:54:50 +08:00
wqking
0859c1c8ad Refactored code and improved unit test that avoid memory leak in CallbackList move assignment 2020-07-01 22:19:15 +08:00
Wang Qi
cd68c9c8ed
Merge pull request #14 from OlivierLDff/unittest-fix
Fix unit test compilation for msvc.
2020-07-01 22:01:33 +08:00
Olivier LDff
a9afc2790c Fix unit test compilation for msvc. itemCount wasn't captured. 2020-07-01 14:16:29 +02:00
Olivier LDff
12e54ace59 Fix move assignment operator for callback list and unit test 2020-07-01 14:04:06 +02:00
wqking
b18d25dea7 Added unit tests 2020-05-25 21:59:20 +08:00
wqking
6848764ca3 Added unit tests 2020-04-19 21:18:27 +08:00
wqking
482215b73a Added unit tests 2020-04-18 21:23:59 +08:00
wqking
53114e93c0 Added unit tests 2020-04-17 21:25:01 +08:00
wqking
144af5d681 Added code coverage 2020-04-15 21:01:31 +08:00
wqking
03f4a8304e Fixed compile error in assignment operators 2020-02-25 15:06:13 +08:00
wqking
09da387ffc Fixed unintended wrong algorithm in unit test 2020-02-09 11:23:12 +08:00
wqking
708b1b4959 Added document for eventmaker.h 2020-01-23 21:42:16 +08:00
wqking
cf2b424abb Added event maker macros 2020-01-22 16:55:25 +08:00
wqking
311fb876dd Added -Wpedantic compile flag to GCC and fixed compile warnings according to #6 2019-12-27 21:45:30 +08:00
wqking
c072e39036 Added VC2019 build. Added change log. 2019-12-13 21:17:00 +08:00
wqking
79d89ad06e Utilities support heter-classes 2019-05-30 23:01:51 +08:00
wqking
48b7725412 Fixed warnings 2019-05-30 22:11:20 +08:00
wqking
15f6da1eeb Merge remote-tracking branch 'origin/master' into heterogeneous 2019-05-30 21:59:40 +08:00
wqking
6ad5c1f558 Fixed warnings under /W4 in MSVC and -Wall -Wextra in GCC. Raised warning level in unittests to highest. 2019-05-28 18:54:04 +08:00
wqking
d4d298b191 Added unit tests 2019-03-31 21:58:02 +08:00
wqking
0d082a5249 Added documents for heter-classes 2019-03-31 19:38:49 +08:00
wqking
0bad2cfe96 Removed one kind of forEach callback 2019-03-31 16:46:26 +08:00
wqking
188ddc403e Added tutorial code for HeterCallbackList 2019-03-31 11:10:21 +08:00
wqking
e682b673b6 Added unit tests 2019-03-30 10:30:05 +08:00
wqking
b10554b919 Added unit tests 2019-03-29 22:32:25 +08:00
wqking
492a3f93c2 Added unit tests 2019-03-29 12:28:55 +08:00
wqking
3d4c9a09e3 Merge branch 'master' into heterogeneous 2019-03-29 09:47:43 +08:00
wqking
2f2b506b8e Fixed a bug 'cannot decrement begin list iterator' in EventQueue::processIf 2019-03-29 09:47:05 +08:00
wqking
798a71a723 Made MixinHeterFilter compilable. 2019-03-29 09:19:56 +08:00
wqking
e970856b31 Improved MixinHeterFilter 2019-03-28 23:15:01 +08:00
wqking
49ee4503b4 Use HeterCallbackList to implement HeterEventDispatcher 2019-03-28 20:37:56 +08:00
wqking
b91b0b788e Added HeterCallbackList 2019-03-28 15:32:24 +08:00
wqking
b3d99a3e82 Remove temporary words in test case names. 2019-03-27 22:40:13 +08:00
wqking
901070bf7c Added ArgumentPassingMode to HeterEventDispatcher. Improved HeterEventQueue. 2018-12-29 22:31:41 +08:00
wqking
0be6db785c Merge branch 'master' into heterogeneous 2018-12-23 10:22:06 +08:00
wqking
1ff47962e8 Added hasAnyListener 2018-12-23 10:20:48 +08:00
wqking
a2afefbf92 Merge branch 'master' into heterogeneous 2018-12-23 09:49:32 +08:00
wqking
2650aa59cf Added hasEvent and hasListener 2018-12-23 09:48:13 +08:00
wqking
d8c960483e Improved mixin handling in HeterEventDispatcher 2018-12-16 14:49:44 +08:00
wqking
9a90b19012 Added MixinHeterFilter 2018-12-15 22:41:38 +08:00
wqking
54eed44171 Added HeterEventQueue. Moved internal code to internal folder. 2018-12-15 10:50:39 +08:00
wqking
91e0b0f46d Upgraded Catch2 to v2.5.0 2018-12-15 10:32:43 +08:00
wqking
4469699d34 Rewrote EventQueue::QueuedEvent with meaningful struct 2018-12-13 19:32:06 +08:00
wqking
527742e22d Removed unused headers 2018-12-12 22:34:42 +08:00
wqking
45a6bc05fa Improved unit tests 2018-12-09 22:45:19 +08:00
wqking
eac2f1ab02 Simplified callback type in HeterEventDispatcher 2018-12-09 20:01:40 +08:00
wqking
8fddc09135 Improved ctors in HeterEventDispatcher 2018-12-09 16:13:42 +08:00
wqking
8e16ae2e90 Enclosed internal code with namespace internal_ 2018-12-08 16:11:53 +08:00
wqking
11d8c3f3ec Use std::tuple instead of PrototypeList 2018-12-08 15:44:47 +08:00
wqking
21baa6b5d9 Added Handle and removeListener to HeterEventDispatcher 2018-12-08 12:42:59 +08:00
wqking
f9d2055da4 Merge branch 'master' into heterogeneous 2018-12-08 10:16:29 +08:00
wqking
b8b6600ae6 Now getEvent in the policies can be template function. 2018-12-08 10:14:35 +08:00
wqking
93494768f7 Added class HeterEventDispatcher 2018-12-08 08:49:55 +08:00
wqking
1249e4f2ee Improved benchmark. 2018-08-05 15:09:58 +08:00
wqking
03fed0e343 Fixed benchmark 2018-08-05 13:15:09 +08:00
wqking
63f67a70a8 Added project for benchmark. 2018-08-05 12:46:36 +08:00
wqking
e9d0a124e3 Added SpinLock as alternative mutex type, added corresponding benchmarks. 2018-07-28 23:25:17 +08:00
wqking
abd1ec7830 Added benchmark for CallbackList append/remove callbacks 2018-07-25 23:02:45 +08:00
wqking
5e7829cb14 Added benchmark for EventQueue 2018-07-25 22:01:12 +08:00
wqking
ca891ac291 Added function processIf to EventQueue 2018-07-24 22:11:01 +08:00