Skip to content

Commit

Permalink
fix pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
oathdruid committed Sep 19, 2024
1 parent 8f4fe7e commit 0af48ec
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
8 changes: 7 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,13 @@ if(BUILD_DEPS)
URL "https://github.com/google/googletest/archive/refs/tags/v1.14.0.tar.gz"
URL_HASH SHA256=8ad598c73ad796e0d8280b082cebd82a630d73e73cd3c70057938a6501bba5d7
)
FetchContent_Declare(
libcoro
URL "https://github.com/jbaldwin/libcoro/archive/refs/tags/v0.12.1.tar.gz"
URL_HASH SHA256=2cb6f45fc73dad6008cc930d92939785684835e03b12df422b98fcab9e393add
)
if(BUILD_TESTING AND CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
FetchContent_MakeAvailable(googletest)
FetchContent_MakeAvailable(googletest libcoro)
endif()
set(protobuf_BUILD_TESTS OFF)
set(ABSL_ENABLE_INSTALL ON)
Expand Down Expand Up @@ -117,6 +122,7 @@ if(BUILD_TESTING AND CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
target_link_libraries("${TARGET_NAME}" babylon_test_proto)
target_link_libraries("${TARGET_NAME}" babylon)
target_link_libraries("${TARGET_NAME}" GTest::gtest_main)
target_link_libraries("${TARGET_NAME}" libcoro)
gtest_discover_tests("${TARGET_NAME}")
endforeach()

Expand Down
6 changes: 3 additions & 3 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ load('@bazel_tools//tools/build_defs/repo:http.bzl', 'http_archive')

http_archive(
name = 'com_google_absl',
urls = ['https://github.com/abseil/abseil-cpp/archive/refs/tags/20211102.0.tar.gz'],
strip_prefix = 'abseil-cpp-20211102.0',
sha256 = 'dcf71b9cba8dc0ca9940c4b316a0c796be8fab42b070bb6b7cab62b48f0e66c4',
urls = ['https://github.com/abseil/abseil-cpp/archive/refs/tags/20220623.1.tar.gz'],
strip_prefix = 'abseil-cpp-20220623.1',
sha256 = '91ac87d30cc6d79f9ab974c51874a704de9c2647c40f6932597329a282217ba8',
)

http_archive(
Expand Down
2 changes: 1 addition & 1 deletion src/babylon/future.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ inline bool FutureContext<T, M>::wait_for(
template <typename T, typename M>
template <typename C, typename>
inline void FutureContext<T, M>::on_finish(C&& callback) noexcept {
auto head = _head.load(::std::memory_order_relaxed);
auto head = _head.load(::std::memory_order_acquire);
if (is_sealed(head)) {
internal::future::run_callback(callback, value());
return;
Expand Down

0 comments on commit 0af48ec

Please sign in to comment.