updated to oatpp veraion 0.19.4

This commit is contained in:
lganzzzo 2019-04-29 03:36:43 +03:00
parent 656e6a8541
commit ff148d5391
2 changed files with 3 additions and 7 deletions

View File

@ -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

View File

@ -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<oatpp::concurrency::SpinLock> lock(m_lock);
std::cout << tag << ":" << message << "\n";
}