From 5990abead18b51b2e43c2810f3453b5e862606ed Mon Sep 17 00:00:00 2001 From: Andriy Grygorenko Date: Fri, 27 Nov 2015 20:19:32 -0500 Subject: [PATCH] F.27: Example fix It is usually a bad idea to share mutable objects between threads, which leads to a race condition or unnecessary thread contention., --- CppCoreGuidelines.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 656b478..8d5fafd 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -2583,7 +2583,7 @@ Using `std::shared_ptr` is the standard way to represent shared ownership. That ##### Example - shared_ptr im { read_image(somewhere) }; + shared_ptr im { read_image(somewhere) }; std::thread t0 {shade, args0, top_left, im}; std::thread t1 {shade, args1, top_right, im};