diff options
author | vkalintiris <vasilis@netdata.cloud> | 2024-02-26 11:16:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-26 11:16:40 +0200 |
commit | ac6a2f6563084948332beba5c71d0204760e77a5 (patch) | |
tree | 1abd0dc6474c81bf15a7736ff33ab57008b4908e /src/ml/ml-private.h | |
parent | 5f68469ee56bff4f9f10d9a94c4461e76a7b2c52 (diff) |
Protect type anomaly rate map (#17044)
* Add spinlock API to skip cancelability state changes.
* Protect type anomaly rate map
Diffstat (limited to 'src/ml/ml-private.h')
-rw-r--r-- | src/ml/ml-private.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ml/ml-private.h b/src/ml/ml-private.h index 96b27d60ff..646a5cb17d 100644 --- a/src/ml/ml-private.h +++ b/src/ml/ml-private.h @@ -264,6 +264,7 @@ typedef struct { RRDDIM *detector_events_new_anomaly_event_rd; RRDSET *type_anomaly_rate_rs; + SPINLOCK type_anomaly_rate_spinlock; std::unordered_map<STRING *, ml_type_anomaly_rate_t> type_anomaly_rate; } ml_host_t; |