Skip to content

Commit

Permalink
mqsize fetch sub use acq rel
Browse files Browse the repository at this point in the history
  • Loading branch information
sniper00 committed Nov 12, 2024
1 parent eadad66 commit dd67b2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/moon/core/worker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ void worker::send(message&& msg) {
service* s = nullptr;
for (auto& m: read_queue) {
s = handle_one(s, std::move(m));
--mqsize_;
mqsize_.fetch_sub(1, std::memory_order_acq_rel);
}
read_queue.clear();
}
Expand Down

0 comments on commit dd67b2e

Please sign in to comment.