From 1d77edb0d9f5006f66cfe4d1c73f9fba1713a8ee Mon Sep 17 00:00:00 2001 From: Bryan Dallas Date: Tue, 1 Sep 2015 11:37:19 -0400 Subject: [PATCH] Fixed incorrect usage of atomic_fetch_add --- include/redox/client.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/redox/client.hpp b/include/redox/client.hpp index f8f670d..9a1ec1d 100644 --- a/include/redox/client.hpp +++ b/include/redox/client.hpp @@ -400,7 +400,7 @@ Command &Redox::createCommand(const std::vector &cmd, } } - auto *c = new Command(this, std::atomic_fetch_add(commands_created_, 1), cmd, + auto *c = new Command(this, commands_created_.fetch_add(1), cmd, callback, repeat, after, free_memory, logger_); std::lock_guard lg(queue_guard_); -- libgit2 0.21.4