Skip to content

Commit d82b784

Browse files
committed
Final touches
1 parent 23bf832 commit d82b784

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

lectures/parallelism.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Parallelism in modern C++
22
--
33

44
<p align="center">
5-
<a href="https://youtu.be/blah"><img src="https://img.youtube.com/vi/blah/maxresdefault.jpg" alt="Video" align="right" width=50%></a>
5+
<a href="https://youtu.be/-VWCEklRP6I"><img src="https://img.youtube.com/vi/-VWCEklRP6I/maxresdefault.jpg" alt="Video" align="right" width=50%></a>
66
</p>
77

88
- [Parallelism in modern C++](#parallelism-in-modern-c)
@@ -783,7 +783,7 @@ There are three main puzzle pieces to using conditional variables. First, we nee
783783

784784
Now the interplay between these is as follows. A single condition variable is shared among multiple threads. There are threads that want to work with the underlying data but can only do so under a certain condition. So they wait for the condition variable to be notified that this condition is now satisfied.
785785

786-
When another thread makes a change to the data that makes the condition true, we call `cv.notify_once()` or `cv.notify_all()` depending on circumstances to notify one or all instances of our condition variable that the condition has been now met.
786+
When another thread makes a change to the data that makes the condition true, we call `cv.notify_one()` or `cv.notify_all()` depending on circumstances to notify one or all instances of our condition variable that the condition has been now met.
787787

788788
Once the condition variables in those threads receive a notification we sent out the threads wake up and continue their work.
789789

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -806,7 +806,7 @@ Headers with classes
806806
<summary>Parallelism in modern C++</summary>
807807

808808
----------------------------------------------------------
809-
[![Video thumbnail](https://img.youtube.com/vi/blah/maxresdefault.jpg)](https://youtu.be/blah)
809+
[![Video thumbnail](https://img.youtube.com/vi/-VWCEklRP6I/maxresdefault.jpg)](https://youtu.be/-VWCEklRP6I)
810810

811811
- [Parallelism in modern C++](lectures/parallelism.md#parallelism-in-modern-c)
812812
- [Disclaimer](lectures/parallelism.md#disclaimer)

0 commit comments

Comments
 (0)