cameron314 / cameron314/readerwriterqueue

Select multiple queues

Open
#123 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
4.6k
Forks
736
Avg merge
10d 5h
Merged PRs (30d)
1

Description

What is the best way to wait behind multiple queues and being notified when a message is coming from any of them?
Actually I want something like select (in linux sockets or go programming language for channels).
What I am doing now is iterating over all of them and use the non-blocking api try_dequeue, but this solution is busy wait and not efficient.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the queue API, especially the non-blocking try_dequeue operation described in the issue. Determine whether a blocking wait across multiple queues can be specified without busy-waiting, and document the expected notification and completion behavior for messages arriving on any queue.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.