Skip to content

Commit 9ef4f36

Browse files
committed
Mark get_summary in measure.cc as thread safe
`get_summary` reads a value, and should be thread safe to execute (the values might be off though).
1 parent 57497af commit 9ef4f36

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/modules/measure.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ static bool IsTimestamped(bess::Packet *pkt, size_t offset, uint64_t *time) {
5757

5858
const Commands Measure::cmds = {
5959
{"get_summary", "EmptyArg", MODULE_CMD_FUNC(&Measure::CommandGetSummary),
60-
Command::THREAD_UNSAFE},
60+
Command::THREAD_SAFE},
6161
{"clear", "EmptyArg", MODULE_CMD_FUNC(&Measure::CommandClear),
6262
Command::THREAD_UNSAFE},
6363
};

0 commit comments

Comments
 (0)