Skip to content

Commit

Permalink
feat(io_context): no require lock_free in local spsc_cursor
Browse files Browse the repository at this point in the history
  • Loading branch information
Codesire-Deng committed Nov 9, 2023
1 parent e9ff6a2 commit 1334c5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/co_context/detail/spsc_cursor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ template<
bool is_blocking = is_thread_safe>
struct spsc_cursor {
static_assert(std::has_single_bit(capacity));
static_assert(std::atomic<T>::is_always_lock_free);
static_assert(!is_thread_safe || std::atomic<T>::is_always_lock_free);
static_assert(
is_thread_safe || !is_blocking,
"a thread-unsafe instance "
Expand Down

0 comments on commit 1334c5b

Please sign in to comment.