[prev in list] [next in list] [prev in thread] [next in thread]
List: boost
Subject: Re: [boost] [Boost.Lockfree] Interest in a ringbuffer class
From: Raphaël_Londeix <raphael.londeix () gmail ! com>
Date: 2017-01-27 18:07:32
Message-ID: CAKB2WUngj_ghm1-QKyY71RbocPEbpHe3LE+hnJis+OH7G8iPYA () mail ! gmail ! com
[Download RAW message or body]
Hi guys,
I created a first draft
https://gist.github.com/hotgloupi/0e970a0e11091dfb0df8f942a0352b87
There's basically four types:
struct default_ringbuffer_policies;
template<typename Policies> struct basic_ringbuffer;
template<typename T> struct default_ring_policies;
template<typename T, typename Policies> struct basic_ring;
and two naive storage implementations.
basic_ringbuffer manipulates buffers, and basic_ring works on element of
types T.
The idea is basically to be able to compose types to create complete
interfaces (see
the spsc_queue definition at the end). Of course, this is nowhere near
complete, but
I hope it can give you an idea of the design.
Cheers,
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic