Skip to content

Commit

Permalink
clang-17 bug caches thread local
Browse files Browse the repository at this point in the history
  • Loading branch information
kelbon committed Oct 5, 2024
1 parent 9592245 commit 0f4ad3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_coroutines.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ TEST(job_mm) {
std::atomic<size_t> err_c = 0;
auto job_creator = [&](std::atomic<int32_t>& value) -> dd::job {
auto th_id = std::this_thread::get_id();
(void)co_await dd::jump_on(dd::new_thread_executor);
(void)co_await dd::jump_on(TP);
if (th_id == std::this_thread::get_id())
++err_c;
value.fetch_add(1, std::memory_order::release);
Expand Down

0 comments on commit 0f4ad3f

Please sign in to comment.