Skip to content

Commit 20e8696

Browse files
committed
updated to oatpp veraion 0.19.4
1 parent b8884d2 commit 20e8696

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

main/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

3131
target_link_libraries(${project_name}-lib
3232
PUBLIC oatpp::oatpp

main/src/Logger.hpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,11 @@
2121
*/
2222
class Logger : public oatpp::base::Logger {
2323
private:
24-
oatpp::concurrency::SpinLock::Atom m_atom;
24+
oatpp::concurrency::SpinLock m_lock;
2525
public:
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

0 commit comments

Comments
 (0)