-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix race condition for simultaneous calls to queryTradableMarkets fro…
…m private exchanges
- Loading branch information
Showing
8 changed files
with
94 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,30 @@ | ||
aux_source_directory(src MAIN_SRC) | ||
|
||
if(CCT_BUILD_EXEC) | ||
add_executable(coincenter ${MAIN_SRC}) | ||
add_executable(coincenter ${MAIN_SRC}) | ||
|
||
# Enable LTO with coincenter in Release mode | ||
if(CMAKE_BUILD_TYPE STREQUAL "Release") | ||
set_property(TARGET coincenter PROPERTY INTERPROCEDURAL_OPTIMIZATION TRUE) | ||
message(STATUS "Activate LTO for coincenter") | ||
endif() | ||
# Enable LTO with coincenter in Release mode | ||
if(CMAKE_BUILD_TYPE STREQUAL "Release") | ||
set_property(TARGET coincenter PROPERTY INTERPROCEDURAL_OPTIMIZATION TRUE) | ||
message(STATUS "Activate LTO for coincenter") | ||
endif() | ||
else() | ||
list(REMOVE_ITEM ENGINE_SRC "src/main.cpp") | ||
add_library(coincenter STATIC ${MAIN_SRC}) | ||
list(REMOVE_ITEM ENGINE_SRC "src/main.cpp") | ||
add_library(coincenter STATIC ${MAIN_SRC}) | ||
endif() | ||
|
||
target_link_libraries(coincenter PUBLIC coincenter_engine) | ||
|
||
set_target_properties(coincenter PROPERTIES | ||
VERSION ${PROJECT_VERSION} | ||
COMPILE_DEFINITIONS_DEBUG "JSON_DEBUG;JSON_SAFE;JSON_ISO_STRICT" | ||
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR} | ||
VERSION ${PROJECT_VERSION} | ||
COMPILE_DEFINITIONS_DEBUG "JSON_DEBUG;JSON_SAFE;JSON_ISO_STRICT" | ||
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR} | ||
) | ||
|
||
add_unit_test( | ||
processcommandsfromcli_test | ||
src/processcommandsfromcli.cpp | ||
test/processcommandsfromcli_test.cpp | ||
LIBRARIES | ||
coincenter_engine | ||
processcommandsfromcli_test | ||
src/processcommandsfromcli.cpp | ||
test/processcommandsfromcli_test.cpp | ||
LIBRARIES | ||
coincenter_engine | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters