Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Generic Locking in C++

NDC Conferences via YouTube

Overview

Explore generic locking techniques in C++ with Andrei Alexandrescu in this comprehensive conference talk. Delve into lock-based synchronization for multithreaded programs, examining the advantages of multiple readers/single writer locks and C++1x STL container guarantees. Discover the folly/Synchronized library, which offers reliable encapsulated locking for generic types, addressing common issues like races and deadlocks. Cover topics including volatiles, multithreading, encapsulation, implementation, synchronous builds, cycle detection, synchronized pipes, locking pointers, and advanced synchronization techniques. Learn about rookie mistakes to avoid, synchronized statements, macro tricks, and Facebook's dot-arrow magic macro for synchronization.

Syllabus

Introduction
Volatiles
Multithreading
Cx1x
STD Containers
Encapsulation
Implementation
Synchronous
Build from data
Cycle detection
Synchronized pipe
Recap
Locking Pointer
Move
Parse
LogPointer
C Begin
You Know That Macro
Rookie Mistake
Synchronized Statement
Macro Trick
Synchronization
Expression
Two Arguments
Facebook
dot
arrow
magic macro
Synchronize

Taught by

NDC Conferences

Reviews

Start your review of Generic Locking in C++

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.