Skip to content

Commit

Permalink
Revert "removing mtx"
Browse files Browse the repository at this point in the history
This reverts commit ef2047b.
  • Loading branch information
oandreeva-nv committed Jul 2, 2024
1 parent a89aa19 commit 8bef853
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/infer_trace.cc
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ void
InferenceTrace::RecordActivityName(
uint64_t timestamp_ns, std::string activity_name)
{
std::lock_guard<std::mutex> lock(mu_);
triton::common::TritonJson::Value context_json(
triton::common::TritonJson::ValueType::OBJECT);
if (!context_.empty()) {
Expand Down
1 change: 1 addition & 0 deletions src/infer_trace.h
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ class InferenceTrace {
// across traces
static std::atomic<uint64_t> next_id_;
std::string context_ = "";
std::mutex mu_;
};

//
Expand Down

0 comments on commit 8bef853

Please sign in to comment.