Skip to content

No atomic alloc

Compare
Choose a tag to compare
@ConorWilliams ConorWilliams released this 15 Mar 15:42

This version detects types that can be stored directly in the ring buffer (std::atomic<T>::is_always_lock_free && std::is_trivially_destructible_v<T> == true) and no longer allocates heap storage when this is the case.