Skip to content

Commit 783c3e0

Browse files
yunhanw-googlerestyled-commitstcarmelveilleux
authored
update LogEvent usage restriction (project-chip#31726)
* update LogEvent usage restriction * Restyled by whitespace * Update src/app/EventLogging.h Co-authored-by: Tennessee Carmel-Veilleux <tennessee.carmelveilleux@gmail.com> --------- Co-authored-by: Restyled.io <commits@restyled.io> Co-authored-by: Tennessee Carmel-Veilleux <tennessee.carmelveilleux@gmail.com>
1 parent 20c46c2 commit 783c3e0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/app/EventLogging.h

+4
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ class EventLogger : public EventLoggingDelegate
5454
* context tags to be interpreted within the schema identified by
5555
* `ClusterID` and `EventId`.
5656
*
57+
* The consumer has to either lock the Matter stack lock or queue the event to
58+
* the Matter event queue when using LogEvent. This function is not safe to call
59+
* outside of the main Matter processing context.
60+
*
5761
* LogEvent has 2 variant, one for fabric-scoped events and one for non-fabric-scoped events.
5862
* @param[in] aEventData The event cluster object
5963
* @param[in] aEndpoint The current cluster's Endpoint Id

0 commit comments

Comments
 (0)