Skip to content

Mpmc xadd q poll can use consumerIndex parity bit to mark a rotation #265

@franz1981

Description

@franz1981

mpmc xadd's poll uses the consumer index to move forward the consumers, but consumers that need to recognize that a rotation is in progress have to check consumerBuffer::index value.

The rotation in progress case can be handled more transpanrently by stealing the parity bit of consumerIndex, saving to read the consumerBuffer (and its index) field if not necessary.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions