Commit Graph

61 Commits

Author SHA1 Message Date
TheMode fc90fe8852 Remove some `Collections` usage
Signed-off-by: TheMode <themode@outlook.fr>
2022-09-06 15:08:36 +02:00
TheMode 131116013d Event nodes need total order
Signed-off-by: TheMode <themode@outlook.fr>
2022-03-26 12:02:36 +01:00
themode a689691873 Unnecessary fences 2022-03-26 11:44:40 +01:00
TheMode daf83a25d1 Add some event node query tests
Signed-off-by: TheMode <themode@outlook.fr>
2022-03-26 10:13:43 +01:00
themode edabb19891 Explicit fences 2022-03-25 10:12:04 +01:00
themode 2f6e3b62b0 Registration cleanup 2022-03-06 09:06:59 +01:00
TheMode 0f8f1f9906
Unique node mapping (#737) 2022-03-06 07:29:51 +01:00
TheMode 1bea4848ac
Local node (#734) 2022-03-05 17:01:10 +01:00
TheMode cc69fcf05a
Revert "Local node support (#688)" (#733)
This reverts commit 0cb2600929.
2022-03-05 12:06:59 +01:00
TheMode 0cb2600929
Local node support (#688) 2022-03-05 11:11:39 +01:00
themode 5b3cb709d6 Use ClassValue to store event handles 2022-02-23 00:02:11 +01:00
themode 2438393ce1 Remove GlobalHandles for better testability 2022-02-13 12:34:27 +01:00
TheMode a2b1148343 Make EventNode#toString return a graph of the current node state
Signed-off-by: TheMode <themode@outlook.fr>
2022-02-02 15:41:11 +01:00
themode de817e5e52 Use acquire/release for node updating 2022-01-10 16:51:21 +01:00
themode 68f19e3dae Add test for node mapping 2022-01-10 16:51:21 +01:00
themode f1a4f002c3 Reuse local booleans for readability 2022-01-10 16:51:21 +01:00
TheMode b308ce5baa
Update to Java 17 (#462) 2021-10-22 01:55:55 +02:00
TheMode a92ac203f7 Style cleanup 2021-08-29 17:11:10 +02:00
TheMode 61d19243f7 Fix event expiration 2021-08-29 12:50:44 +02:00
TheMode 8b61ead08e Fix parent filtering 2021-08-29 12:25:57 +02:00
TheMode 0a3ad69e58 Ensure listeners being up to date 2021-08-29 01:03:09 +02:00
TheMode 4680dbd64e Reuse call method for mapped nodes
Signed-off-by: TheMode <themode@outlook.fr>
2021-08-27 09:55:10 +02:00
TheMode 5c9c57439a Prevent node update from being called multiple times
Signed-off-by: TheMode <themode@outlook.fr>
2021-08-27 09:51:36 +02:00
TheMode 66681c5caf Use an array for filtering 2021-08-26 14:25:13 +02:00
TheMode d56479d316 Ensure that child also invalidate events
Signed-off-by: TheMode <themode@outlook.fr>
2021-08-26 13:24:16 +02:00
TheMode 5ddd97cee2 Move optimized event calling inside ListenerHandle 2021-08-24 15:35:09 +02:00
TheMode 93cbd52313 Use arrays instead of lists for loops 2021-08-24 15:12:39 +02:00
TheMode 5e27399815 Fix event propagation on self 2021-08-24 11:49:57 +02:00
TheMode 7740c45982 Fix node child removal 2021-08-23 18:43:20 +02:00
TheMode f1c9268897 Catch Throwable instead of Exception 2021-08-22 18:35:19 +02:00
TheMode 234d26dce9 Add some comments 2021-08-22 05:02:44 +02:00
TheMode ab91c08a66 Typo 2021-08-22 04:39:53 +02:00
TheMode d4f8aa6fcb Simplify & inline mapped listeners
Signed-off-by: TheMode <themode@outlook.fr>
2021-08-22 04:17:42 +02:00
TheMode 9c7c409fae Reduce listener count 2021-08-22 03:08:37 +02:00
TheMode 6f88abf987 Warn about EventNode#map performance 2021-08-22 00:41:30 +02:00
TheMode d9c000f80a Cache listener handles for mapped nodes
Signed-off-by: TheMode <themode@outlook.fr>
2021-08-21 10:02:57 +02:00
TheMode f9c67d9b2b Improve mapped node listening 2021-08-21 07:01:48 +02:00
TheMode a58e149918 Remove unnecessary generic declaration 2021-08-21 04:21:03 +02:00
TheMode c6cc96a5f9 Less change propagation/volatile read 2021-08-21 04:15:47 +02:00
TheMode cfbd655027 Cleanup 2021-08-21 02:08:25 +02:00
TheMode 0ad763a813 Performance improvement 2021-08-21 02:00:30 +02:00
TheMode 429d12c7e3 Add some comments 2021-08-21 01:35:47 +02:00
TheMode 7dfa477500 Initial mapped node support 2021-08-21 01:24:30 +02:00
TheMode 8297089ca8 Fix recursive class selection 2021-08-20 10:27:22 +02:00
TheMode 9a4ced9a6e Cleanup 2021-08-20 10:13:08 +02:00
TheMode a365676848 Add RecursiveEvent 2021-08-20 10:05:44 +02:00
TheMode e16a662908 Add EventNode#hasListener 2021-08-20 05:57:29 +02:00
TheMode 88a3a7d37c Update doc 2021-08-20 05:21:53 +02:00
TheMode 04be72c429 Support listener expiration 2021-08-20 03:00:25 +02:00
TheMode 46d2542d59 Rename EventListener#eventType 2021-08-19 22:53:20 +02:00