1
0
mirror of https://github.com/wqking/eventpp.git synced 2024-12-28 09:08:17 +08:00

127 Commits

Author SHA1 Message Date
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
wqking
c282b562cc Added function clearEvents to EventQueue 2018-07-23 18:49:26 +08:00
wqking
2c734c8704 Added function processOne to EventQueue 2018-07-10 22:05:00 +08:00
wqking
46285cb8dc Made the major classes copyable/movable/assignable. Add utilities. 2018-07-09 22:15:37 +08:00
wqking
361046a77b Added benchmark 2018-05-31 12:48:40 +08:00
wqking
53c46c67ba Added policy canContinueInvoking to support event canceling 2018-05-28 20:21:51 +08:00
wqking
3d2d0672fe Added version number and status in readme 2018-05-28 17:25:53 +08:00
wqking
10b7f4bf8a Renamed interceptor to mixin 2018-05-28 15:42:57 +08:00
wqking
b01b11db18 Added interceptor, replaced event filter with interceptor 2018-05-27 16:38:15 +08:00
wqking
457c24665d Added license header 2018-05-26 09:10:18 +08:00
wqking
bcb047312b Updated document 2018-05-26 09:01:18 +08:00
wqking
925b09a413 Added EventPolicies, moved the extra template paramters of EventDispatcher/EventQueue/CallbackList to EventPolicies. 2018-05-25 08:33:11 +08:00
wqking
c6a4fe21b3 Added test file for benchmark. 2018-05-20 19:11:45 +08:00
wqking
eac5092609 Support non-copyable event argument in EventQueue. 2018-05-20 13:35:27 +08:00
wqking
7b7d65d5b9 Added function peekEvent, takeEvent, and overloaded dispatch to event queue. 2018-05-20 12:49:25 +08:00
wqking
3227456a73 Added test for customized event in event queue. 2018-05-19 20:30:38 +08:00
wqking
581c3efa00 Added documents. 2018-05-19 17:42:41 +08:00
wqking
57f5cd8d0f Added new test in test_queue. 2018-05-19 14:24:34 +08:00
wqking
ec026050ec Added tutorial_eventqueue.cpp to unit tests. 2018-05-19 12:43:51 +08:00
wqking
6ce1200ae1 Separate EventQueue and EventDispatcher for better interface. 2018-05-19 11:16:12 +08:00
wqking
89b378f114 Added function wait and waitFor in EventDispatcher to allow a thread be blocked when there is no events in the queue. 2018-05-19 09:52:10 +08:00
wqking
2d616daf76 Added a unit test to test SingleThreading policy. 2018-05-17 20:39:01 +08:00
wqking
8b6fc91d31 Fixed typos. 2018-05-16 20:34:10 +08:00
wqking
0e62e9d72f Added event filter. Added more unit tests and tutorials. 2018-05-16 20:09:48 +08:00
wqking
8e7e8662d6 Improved tutorial in documents. 2018-05-14 20:42:54 +08:00
wqking
9320285f4d Now newly added callbacks during dispatching don't get triggered.
Now removed callbacks during dispatching don't get triggered.
2018-05-14 19:16:36 +08:00
wqking
ef897fddf0 Added MSVC 2017 make target. 2018-05-13 16:56:24 +08:00
wqking
f1956140d4 Initial commit 2018-05-13 12:26:27 +08:00