[SERVER-37797] Modify the producer consumer queue to make it safe for multi-producer scenarios Created: 29/Oct/18  Updated: 29/Oct/23  Resolved: 02/Nov/18

Status: Closed
Project: Core Server
Component/s: Internal Code
Affects Version/s: None
Fix Version/s: 4.1.5

Type: New Feature Priority: Major - P3
Reporter: Mira Carey Assignee: Mira Carey
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by SERVER-35026 Add types for the Reader and Writer h... Closed
Backwards Compatibility: Fully Compatible
Sprint: Service Arch 2018-11-05
Participants:

 Description   

The producer consumer queue we currently have is useful, but doesn't have support for multiple producers. A handful of small modifications will make it much more useful:

1. Introduce a Pipe type which exposes the pcq as a producer end, a consumer end and an admin interface.

2. Provide template params for the pcq so that we pay for multi-ness only for types that want it



 Comments   
Comment by Githook User [ 02/Nov/18 ]

Author:

{'name': 'Jason Carey', 'email': 'jcarey@argv.me', 'username': 'hanumantmk'}

Message: SERVER-37797 PCQ +multi +pipe

Add support for MultiProducer + MultiConsumer on our existing PCQ and
introduce a Pipe type which holds the interface via shared_ptr ends and
closes those ends on destruction.
Branch: master
https://github.com/mongodb/mongo/commit/14ff5278871d47f967cdbd00a94d1721165202c6

Generated at Thu Feb 08 04:47:03 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.