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

185 Commits

Author SHA1 Message Date
wqking
4469699d34 Rewrote EventQueue::QueuedEvent with meaningful struct 2018-12-13 19:32:06 +08:00
wqking
64f19c6295 Unified template parameter name 2018-12-12 22:54:16 +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
ae701ee191 Merge branch 'master' into heterogeneous 2018-12-08 10:33:59 +08:00
wqking
a3225c169f Added missed template parameter to getEvent. 2018-12-08 10:32:24 +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
b480594182 Improved documents 2018-12-07 19:39:32 +08:00
wqking
02e95dac54 Moved internal code to separated header 2018-12-07 19:39:05 +08:00
wqking
1249e4f2ee Improved benchmark. v0.1.0 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
171bc7ebe9 Fixed std::list out of bound bug in EventQueue::processOne 2018-07-18 19:33:51 +08:00
wqking
4941c75013 Fixed typo in document 2018-07-15 22:50:03 +08:00
wqking
816991c34c Fixed typo in document 2018-07-15 22:49:02 +08:00
wqking
0593c729b4 Added document 2018-07-15 22:32:24 +08:00
wqking
3caf683b3b Fixed type hiding. 2018-07-12 21:47:51 +08:00
wqking
9e663f1c03 Fixed typos in document. 2018-07-11 22:05:29 +08:00
wqking
2c734c8704 Added function processOne to EventQueue 2018-07-10 22:05:00 +08:00
wqking
92904272ee Fixed typos 2018-07-09 22:30:28 +08:00
wqking
46285cb8dc Made the major classes copyable/movable/assignable. Add utilities. 2018-07-09 22:15:37 +08:00
wqking
174bf76666 Merge branch 'development' 2018-06-23 20:50:37 +08:00
wqking
3606f49c83 Fixed a bug that EventQueue hides name 'dispatch' from event dispatcher. 2018-06-23 20:46:11 +08:00
wqking
f9048fec57 Merge branch 'development' 2018-06-23 13:58:28 +08:00
wqking
1c8ef08c85 Reduced unnecessary Atomic operations. Fixed typos in the documents. 2018-06-23 13:56:52 +08:00
wqking
5fb302b9de Merge branch 'master' into development 2018-05-31 13:20:13 +08:00
wqking
7e5b765995 Fixed document 2018-05-31 13:19:35 +08:00
wqking
fe76b5503b Merge branch 'development' 2018-05-31 12:49:51 +08:00
wqking
361046a77b Added benchmark 2018-05-31 12:48:40 +08:00
wqking
ffc24f4e2f Merge branch 'development' 2018-05-28 20:22:53 +08:00
wqking
53c46c67ba Added policy canContinueInvoking to support event canceling 2018-05-28 20:21:51 +08:00
wqking
b3f8c5a059 Merge branch 'development' 2018-05-28 17:29:10 +08:00
wqking
3d2d0672fe Added version number and status in readme 2018-05-28 17:25:53 +08:00
wqking
30d041697f Added documents for mixins 2018-05-28 17:18:49 +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
db836340cf Merge branch 'development' 2018-05-26 09:11:20 +08:00
wqking
457c24665d Added license header 2018-05-26 09:10:18 +08:00
wqking
369fe1960e Added link to policies in readme. 2018-05-26 09:07:01 +08:00
wqking
bcb047312b Updated document 2018-05-26 09:01:18 +08:00
wqking
876f4ea9fb Use std::unordered_map instead of std::map for hashable event key 2018-05-25 16:00:48 +08:00
wqking
270fa69cc9 Removed unnecessary variadic template paramters from internal classes. 2018-05-25 12:56:24 +08:00
wqking
49580b5ba2 Added license header 2018-05-25 09:50:41 +08:00
wqking
4d725fd9ee Removed unused code 2018-05-25 08:41:06 +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
6f558c96e9 Merge branch 'development' 2018-05-20 13:37:11 +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
1b974a0d30 Merge branch 'development', fixed a bug that event queue uses wrong value of first argument when dispatching event. 2018-05-19 20:41:08 +08:00
wqking
3227456a73 Added test for customized event in event queue. 2018-05-19 20:30:38 +08:00
wqking
f622696e15 Merge branch 'development' 2018-05-19 20:06:46 +08:00
wqking
d470c91da9 Improved documents 2018-05-19 20:04:09 +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
9dc758f2f3 Changed first field in QueueItem with correct event type value. 2018-05-19 10:25:09 +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
5b25176b5c Added the difference between EventDispatcher and CallbackList in the document. 2018-05-17 09:10:00 +08:00
wqking
1bc35f90e6 Replaced all underscore prefixing names with postfix. _xxx -> xxx_ 2018-05-17 08:12:43 +08:00
wqking
3ec6677bf0 Added tutorial information in readme 2018-05-16 20:39:38 +08:00
wqking
8b6fc91d31 Fixed typos. 2018-05-16 20:34:10 +08:00
wqking
ffc89ad7ed Fixed wrong closed tag in markdown. 2018-05-16 20:19:52 +08:00
wqking
b9d3cab940 Fixed markdown syntax error. 2018-05-16 20:16:41 +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
2660a4936f Added table of contents to documents. 2018-05-14 20:00:29 +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
d066865e68 Fixed typos in document. 2018-05-13 19:21:19 +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