Commit 1d77edb0d9f5006f66cfe4d1c73f9fba1713a8ee

Authored by Bryan Dallas
1 parent 22bd580c

Fixed incorrect usage of atomic_fetch_add

Showing 1 changed file with 1 additions and 1 deletions
include/redox/client.hpp
... ... @@ -400,7 +400,7 @@ Command<ReplyT> &Redox::createCommand(const std::vector<std::string> &cmd,
400 400 }
401 401 }
402 402  
403   - auto *c = new Command<ReplyT>(this, std::atomic_fetch_add(commands_created_, 1), cmd,
  403 + auto *c = new Command<ReplyT>(this, commands_created_.fetch_add(1), cmd,
404 404 callback, repeat, after, free_memory, logger_);
405 405  
406 406 std::lock_guard<std::mutex> lg(queue_guard_);
... ...