MCPcopy Create free account
hub / github.com/copperspice/cs_libguarded

github.com/copperspice/cs_libguarded @libguarded-2.0.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release libguarded-2.0.1 ↗ · + Follow
1,519 symbols 2,920 edges 18 files 55 documented · 4% updated 5mo ago★ 2451 open issues

Browse by type

Functions 1,108 Types & classes 411
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

CsLibGuarded

Introduction

The CsLibGuarded library is a standalone header only library for multithreaded programming.

This library provides templated classes which prevent race conditions by controlling access to shared data. Existing multithreading primitives like mutexes and locks are only bound to the protected data by conventions. This makes it very easy to introduce bugs in your code by forgetting to use the right locks before accessing a block of data. The idea of this library is to tie the data and the locks in a type safe interface that only allows correct usage.

System Requirements

Building CsLibGuarded requires a C++20 compiler and a C++20 standard library.

CMake build files are provided with the source distribution. The unit test binary executable is an optional part of the build process.

This library has been tested with clang sanitizer and an extensive industry code review.

Documentation

Class level documentation for CsLibGuarded is available on the CopperSpice website:

https://www.copperspice.com/docs/cs_libguarded/index.html

Presentations

Our YouTube channel contains over 75 videos about C++, programming fundamentals, Unicode/Strings, multithreading, graphics, CopperSpice, DoxyPress, and other software development topics.

https://www.youtube.com/copperspice

Links to additional videos can be found on our website.

https://www.copperspice.com/presentations.html

Authors / Contributors

  • Ansel Sermersheim
  • Barbara Geller
  • Casey Bodley
  • Jan Wilmans
  • Eric Lemanissier

License

This library is released under the BSD 2-clause license. For more information refer to the LICENSE file provided with this project.

References

  • Website: https://www.copperspice.com
  • Twitter: https://twitter.com/copperspice_cpp
  • Email: info@copperspice.com

  • Github: https://github.com/copperspice

  • Forum: https://forum.copperspice.com

  • Journal: https://journal.copperspice.com

Core symbols most depended-on inside this repo

Shape

Method 920
Class 386
Function 188
Enum 25

Languages

C++100%

Modules by API surface

test/catch2/catch.hpp1,344 symbols
src/cs_rcu_list.h51 symbols
src/cs_shared_guarded.h19 symbols
src/cs_lock_guards.h18 symbols
src/cs_cow_guarded.h17 symbols
src/cs_rcu_guarded.h15 symbols
src/cs_plain_guarded.h15 symbols
src/cs_deferred_guarded.h14 symbols
src/cs_ordered_guarded.h11 symbols
src/cs_lr_guarded.h10 symbols
test/test_rcu.cpp5 symbols

For agents

$ claude mcp add cs_libguarded \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page