From 2fb369aec4c267b5ae53140c05a70012c260663c Mon Sep 17 00:00:00 2001 From: Harald Alvestrand Date: Mon, 9 Sep 2024 22:16:15 +0000 Subject: [PATCH] Refresh g3doc/implementation_basics.md Bug: b/364206289 Change-Id: Ic082160123ee28fc423ffa151573ce0e85c5624a Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/362200 Reviewed-by: Tomas Gunnarsson Commit-Queue: Harald Alvestrand Cr-Commit-Position: refs/heads/main@{#43003} --- g3doc/implementation_basics.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/g3doc/implementation_basics.md b/g3doc/implementation_basics.md index ae1f199b68..0846f1fcc6 100644 --- a/g3doc/implementation_basics.md +++ b/g3doc/implementation_basics.md @@ -1,5 +1,5 @@ - + # Basic concepts and primitives @@ -54,7 +54,7 @@ behave as follows: * FooBuilder: Has a Build function that returns ownership of a Foo object (as above). The Builder can only be used once, and resources given to the Builder before the Build function is called are either released or owned by the Foo - object. The Create function may be reference-qualified (declared as ```Foo + object. The Build function may be reference-qualified (declared as ```Foo Build() &&```), which means it is invoked as ```std::move(builder).Build()```, and C++ will ensure that it is not used again. @@ -104,7 +104,7 @@ associated classes. ### Synchronization primitives to be used when needed When it is absolutely necessary to let one thread wait for another thread -to do something, Thread::Invoke can be used. This function is DISCOURAGED, +to do something, Thread::BlockingCall can be used. This function is DISCOURAGED, since it leads to performance issues, but is currently still widespread. When it is absolutely necessary to access one variable from multiple threads,