Skip to content

Commit

Permalink
[onert] Apply inline variable to EventWriter
Browse files Browse the repository at this point in the history
This commit applies inline variable to class EventWriter.

ONE-DCO-1.0-Signed-off-by: ragmani <[email protected]>
  • Loading branch information
ragmani committed Feb 12, 2025
1 parent 7497df9 commit 43f8acf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions runtime/onert/core/src/util/EventWriter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@

#include <cassert>

// initialization
std::mutex EventWriter::_mutex;

void EventWriter::readyToFlush(std::unique_ptr<EventRecorder> &&recorder)
{
{
Expand Down
2 changes: 1 addition & 1 deletion runtime/onert/core/src/util/EventWriter.h
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ class EventWriter
void flush(WriteFormat write_format);

private:
static std::mutex _mutex;
static inline std::mutex _mutex;

// number of observer of an executor that want to write profiling data
int32_t _ref_count;
Expand Down

0 comments on commit 43f8acf

Please sign in to comment.