m07-concurrency
CommunityBuild safe, scalable C++ concurrency patterns.
Author13eholder
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Coordinating multiple threads in C++ is tricky and error-prone, leading to data races and deadlocks without proper patterns. This skill provides structured guidance on selecting synchronization primitives, thread lifecycles, and safe communication to build correct multithreaded applications.
Core Features & Use Cases
- Guidance on when to use std::thread vs std::jthread vs std::async for tasks.
- Instruction on using std::mutex, std::lock_guard, and std::atomic to protect shared state.
- Real-world scenarios like worker pools, producer-consumer queues, and parallel computations with modern C++ features.
Quick Start
Create a small multithreaded component that starts a background task with std::thread and protects shared state with a mutex.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: m07-concurrency Download link: https://github.com/13eholder/Modern-Cpp-Skills/archive/main.zip#m07-concurrency Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.