On 19/10/2018 17:15, Dmitry Vyukov wrote:
> On Thu, Oct 18, 2018 at 10:02 AM Anthony Williams <
antho...@gmail.com> wrote:
>>
>> On 18/10/2018 09:23, 饶萌 wrote:
>>> I've just created a real wait-free MPMC queue in 100+ lines of C++11
>>> code: WFMPMC <
https://github.com/MengRao/WFMPMC>.
>>>
>>> Appreciate it if you can help check.
>>
>> This is not wait free. If you have two writers, and both take an index.
>> The writer with the lower index then gets suspended, but the writer with
>> the higher index completes.
>>
>> Now, the next reader has to wait, because the slot it is trying to read
>> from isn't complete yet, even though there is ready data in another slot.
>
> Hi Anthony,
>
> This sounds more like non-linerizable rather then non-wait-free.