Skip to content

Add non-blocking functions for MPMCQueue #5310

@gengliqi

Description

@gengliqi

Enhancement

The tryPop and tryPush function in MPMCQueue are not non-blocking functions.
If the queue is empty(for tryPop) or full(fro tryPush) for a long time, they all wait for a timeout and then return false.

I think it's better to change these tryXXX function names to XXXTimeout and add non-blocking tryXXX functions implementation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/enhancementThe issue or PR belongs to an enhancement.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions