Skip to content

Return value of bounded concurrent queue pop() #807

@FloopCZ

Description

@FloopCZ

Hi everyone,

the OneAPI spec claims that concurrent bounded queue pop() function returns void:

void pop( value_type& result );

However, the implementation returns a bool:
https://github.com/oneapi-src/oneTBB/blob/05023723ff17dc436668a989a5f2c1873e994e72/include/oneapi/tbb/concurrent_queue.h#L380

What is the purpose of this boolean return value? Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions