about
12/09/2022
CsBlockingQueue Repo
CsBlockingQueue code

CsBlockingQueue  Repository

Thread-safe queue that blocks deQer when empty

Quick Status Code functions correctly no known defects Demonstration code yes Documentation yes - needs more Test cases no Static library no, but planned Build requires C# 7.0 Planned design changes None
Fig 1. BlockingQueue Diagram

1.0 Contents

This repository provides a thread-safe BlockingQueue component. It is used in several of the C# projects you will find in other repositories.
The BlockingQueue is:
  • A thread-safe template container that blocks a dequeuer thread when empty. Almost all applications will have one or more enquing threads and one dequing thread.
  • Is move-able but not copy-able.
  • Uses a condition variable and mutex to ensure thread-safe operation.

2.0 Build

All code was built with Visual Studio, Community Edition - 2019, and tested on Windows 10.
  Next Prev Pages Sections About Keys