File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -25,8 +25,8 @@ target_include_directories(${project_name}-lib PUBLIC src)
2525
2626## link libs
2727
28- find_package (oatpp 0.19.1 REQUIRED)
29- find_package (oatpp-swagger 0.19.1 REQUIRED)
28+ find_package (oatpp 0.19.4 REQUIRED)
29+ find_package (oatpp-swagger 0.19.4 REQUIRED)
3030
3131target_link_libraries (${project_name} -lib
3232 PUBLIC oatpp::oatpp
Original file line number Diff line number Diff line change 2121 */
2222class Logger : public oatpp ::base::Logger {
2323private:
24- oatpp::concurrency::SpinLock::Atom m_atom ;
24+ oatpp::concurrency::SpinLock m_lock ;
2525public:
2626
27- Logger ()
28- : m_atom(false )
29- {}
30-
3127 void log (v_int32 priority, const std::string& tag, const std::string& message) override {
32- oatpp::concurrency::SpinLock lock (m_atom );
28+ std::lock_guard< oatpp::concurrency::SpinLock> lock (m_lock );
3329 std::cout << tag << " :" << message << " \n " ;
3430 }
3531
You can’t perform that action at this time.
0 commit comments