From 6ca4bdbf5368dc5ff8ad074e5228029111b795e3 Mon Sep 17 00:00:00 2001 From: yunhanw Date: Sun, 28 Jan 2024 13:43:12 -0800 Subject: [PATCH] update LogEvent usage restriction --- src/app/EventLogging.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/app/EventLogging.h b/src/app/EventLogging.h index 4711d33ac94a55..42aa7f44e8aaf9 100644 --- a/src/app/EventLogging.h +++ b/src/app/EventLogging.h @@ -54,6 +54,9 @@ class EventLogger : public EventLoggingDelegate * context tags to be interpreted within the schema identified by * `ClusterID` and `EventId`. * + * The consumer has to either lock the Matter stack lock or queue the event to + * the Matter event queue when using LogEvent. + * * LogEvent has 2 variant, one for fabric-scoped events and one for non-fabric-scoped events. * @param[in] aEventData The event cluster object * @param[in] aEndpoint The current cluster's Endpoint Id