From ff148d5391e33b1f041e51b7c08dda2f5d9004dc Mon Sep 17 00:00:00 2001 From: lganzzzo Date: Mon, 29 Apr 2019 03:36:43 +0300 Subject: [PATCH] updated to oatpp veraion 0.19.4 --- CMakeLists.txt | 2 +- test/oatpp-swagger/Logger.hpp | 8 ++------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6195006..c90897f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,7 +5,7 @@ cmake_minimum_required(VERSION 3.1 FATAL_ERROR) ## use these variables to configure module installation set(OATPP_THIS_MODULE_NAME oatpp-swagger) ## name of the module (also name of folders in installation dirs) -set(OATPP_THIS_MODULE_VERSION "0.19.1") ## version of the module (also sufix of folders in installation dirs) +set(OATPP_THIS_MODULE_VERSION "0.19.4") ## version of the module (also sufix of folders in installation dirs) set(OATPP_THIS_MODULE_LIBRARIES oatpp-swagger) ## list of libraries to find when find_package is called set(OATPP_THIS_MODULE_TARGETS oatpp-swagger) ## list of targets to install set(OATPP_THIS_MODULE_DIRECTORIES oatpp-swagger) ## list of directories to install diff --git a/test/oatpp-swagger/Logger.hpp b/test/oatpp-swagger/Logger.hpp index 0a85bcb..ec2dc24 100644 --- a/test/oatpp-swagger/Logger.hpp +++ b/test/oatpp-swagger/Logger.hpp @@ -11,15 +11,11 @@ class Logger : public oatpp::base::Logger { private: - oatpp::concurrency::SpinLock::Atom m_atom; + oatpp::concurrency::SpinLock m_lock; public: - Logger() - : m_atom(false) - {} - void log(v_int32 priority, const std::string& tag, const std::string& message) override { - oatpp::concurrency::SpinLock lock(m_atom); + std::lock_guard lock(m_lock); std::cout << tag << ":" << message << "\n"; }