mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2025-12-17 12:44:42 +03:00
Spaces in blank lines removed
This commit is contained in:
@@ -13399,14 +13399,14 @@ Application concepts are easier to reason about.
|
|||||||
*msg = "Hello";
|
*msg = "Hello";
|
||||||
// ...
|
// ...
|
||||||
}
|
}
|
||||||
|
|
||||||
void manual_publishing(std::string* msg)
|
void manual_publishing(std::string* msg)
|
||||||
{
|
{
|
||||||
// Encapsulates thread functionality into the application task
|
// Encapsulates thread functionality into the application task
|
||||||
std::thread publisher(publish, &msg);
|
std::thread publisher(publish, &msg);
|
||||||
publisher.join();
|
publisher.join();
|
||||||
}
|
}
|
||||||
|
|
||||||
void some_fun() {
|
void some_fun() {
|
||||||
std::string msg;
|
std::string msg;
|
||||||
std::thread publisher(publish, &msg); // bad (less expressive and more error-prone)
|
std::thread publisher(publish, &msg); // bad (less expressive and more error-prone)
|
||||||
@@ -13415,7 +13415,7 @@ Application concepts are easier to reason about.
|
|||||||
// ...
|
// ...
|
||||||
publisher.join();
|
publisher.join();
|
||||||
}
|
}
|
||||||
|
|
||||||
##### Note
|
##### Note
|
||||||
|
|
||||||
With the exception of `async()`, the standard-library facilities are low-level, machine-oriented, threads-and-lock level.
|
With the exception of `async()`, the standard-library facilities are low-level, machine-oriented, threads-and-lock level.
|
||||||
|
|||||||
Reference in New Issue
Block a user