The std::shared_mutex is a std::mutex variant that supports two types of locks: an exclusive lock that can be held by only one thread and a shared lock that can be held by any number of threads (as long as the exclusive lock is not held). The typical use case for exclusive/shared lock semantics is a shared resource with read/write access. A mutating operation requires exclusive access to the resource, while non-mutating operations can co-exist (run in parallel) with other non-mutating operations. Compiler Explorer link: https://lnkd.in/eFfB8NcZ #cpp #cplusplus #coding #programming #dailybiteofcpp
Šimon Tóth’s Post
Explore content categories
- Career
- Productivity
- Finance
- Soft Skills & Emotional Intelligence
- Project Management
- Education
- Technology
- Leadership
- Ecommerce
- User Experience
- Recruitment & HR
- Customer Experience
- Real Estate
- Marketing
- Sales
- Retail & Merchandising
- Science
- Supply Chain Management
- Future Of Work
- Consulting
- Writing
- Economics
- Artificial Intelligence
- Employee Experience
- Workplace Trends
- Fundraising
- Networking
- Corporate Social Responsibility
- Negotiation
- Communication
- Engineering
- Hospitality & Tourism
- Business Strategy
- Change Management
- Organizational Culture
- Design
- Innovation
- Event Planning
- Training & Development
Excellent content Šimon Tóth.