mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2025-12-17 20:54:41 +03:00
Fix punctuation in CP.1 (#1366)
This commit is contained in:
committed by
Sergey Zubkov
parent
a2f5f77b1c
commit
8a1780e841
@@ -13843,7 +13843,7 @@ There are several ways that this example could be made safe for a multi-threaded
|
|||||||
Code that is never run in a multi-threaded environment.
|
Code that is never run in a multi-threaded environment.
|
||||||
|
|
||||||
Be careful: there are many examples where code that was "known" to never run in a multi-threaded program
|
Be careful: there are many examples where code that was "known" to never run in a multi-threaded program
|
||||||
was run as part of a multi-threaded program. Often years later.
|
was run as part of a multi-threaded program, often years later.
|
||||||
Typically, such programs lead to a painful effort to remove data races.
|
Typically, such programs lead to a painful effort to remove data races.
|
||||||
Therefore, code that is never intended to run in a multi-threaded environment should be clearly labeled as such and ideally come with compile or run-time enforcement mechanisms to catch those usage bugs early.
|
Therefore, code that is never intended to run in a multi-threaded environment should be clearly labeled as such and ideally come with compile or run-time enforcement mechanisms to catch those usage bugs early.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user