mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-06-18 01:45:42 +03:00
[thread_event] Remove macros from thread_event and replace with dynamic event objects
This commit is contained in:
parent
5e460bfea2
commit
387e9f0911
17 changed files with 455 additions and 318 deletions
|
|
@ -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,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue