feat(hos_client_create和hos_client_destory): 添加只能锁,保证create和destory不被打断

This commit is contained in:
彭宣正
2021-04-07 17:53:15 +08:00
parent a8573f53cb
commit 43d9aff529
4 changed files with 5 additions and 8 deletions

View File

@@ -10,7 +10,7 @@ link_directories(${CMAKE_INSTALL_PREFIX}/lib)
set(CMKAE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -shared -fPIC")
add_library(${lib_name}_shared SHARED hos_client.cpp hos_hash.cpp)
target_link_libraries(${lib_name}_shared libaws-cpp-sdk-core.so libaws-cpp-sdk-s3.so libMESA_field_stat2.so libcurl.so libpthread.so)
target_link_libraries(${lib_name}_shared PUBLIC libaws-cpp-sdk-core.a libaws-cpp-sdk-s3.a libMESA_field_stat2.so libcurl.so libpthread.so)
set_target_properties(${lib_name}_shared PROPERTIES OUTPUT_NAME ${lib_name})
#for ASAN