Refactor: replace eventpp with a small typed event bus

- libagent: rewrite EventBus as a type-safe dispatcher keyed by event type; listeners are invoked with the concrete event type instead of 'const void*', and the bus is mutex-protected

- libagent: services subscribe/unsubscribe by event type (IService::listen no longer takes an EventId)

- libagent: remove the unused MethodEntry/MethodExit events and EventMethodEntry/EventMethodExit structs

- build: drop the in-tree eventpp headers (23 files) and its license
This commit is contained in:
xiaozhou233 committed 2026-10-15 20:58:23 +08:00
1 parent 4c3798735b
commit 5b0a26d49e
31 files changed
+101 -5481

No files matched your search

+2 -1
View File
@@ -1,5 +1,6 @@
#include <jni_common.hpp>
#include <eventbus.hpp>
#include <event/event_type.hpp>
void JNICALL ClassFileLoadHook(
jvmtiEnv* jvmti_env,
@@ -30,5 +31,5 @@ void JNICALL ClassFileLoadHook(
new_classbytes
};
EventBus::getInstance().post(EventId::ClassFileLoadHook, &event);
EventBus::getInstance().post(event);
}