Skip to content

A lock-free bounded single-producer single-consumer shared memory queue.

Notifications You must be signed in to change notification settings

arneg/shared_queue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This repository contains the implementation of a bounded, lock-free single-producer single-consumer shared memory queue. It uses the well-known concept of a shared circular buffer and atomic instructions to safely synchronize between producer and consumer.

When the queue is full (or empty) the writer (or reader) can optionally wait to be woken up using a futex. This implementation supports linux only.

Copyright (C) 2020-2021 Arne Goedeke - All rights reserved. You may use, distribute and modify this code under the terms of the BSD license.

About

A lock-free bounded single-producer single-consumer shared memory queue.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published