[thread_event] Remove macros from thread_event and replace with dynamic event objects

This commit is contained in:
Slobodan Predolac 2025-03-14 06:34:05 -07:00
parent 5e460bfea2
commit 387e9f0911
17 changed files with 455 additions and 318 deletions

View file

@ -52,6 +52,18 @@ prof_threshold_postponed_event_wait(tsd_t *tsd) {
}
void
prof_threshold_event_handler(tsd_t *tsd, uint64_t elapsed) {
prof_threshold_event_handler(tsd_t *tsd) {
prof_threshold_update(tsd);
}
static bool
prof_threshold_enabled(void) {
return config_stats;
}
te_base_cb_t prof_threshold_te_handler = {
.enabled = &prof_threshold_enabled,
.new_event_wait = &prof_threshold_new_event_wait,
.postponed_event_wait = &prof_threshold_postponed_event_wait,
.event_handler = &prof_threshold_event_handler,
};