Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(211)

Unified Diff: src/d8.cc

Issue 2912773002: Rename "NoBarrier" memory operations to "Relaxed". (Closed)
Patch Set: comment Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/compiler-dispatcher/optimizing-compile-dispatcher.h ('k') | src/debug/debug.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/d8.cc
diff --git a/src/d8.cc b/src/d8.cc
index 2a01e3e55e38e3de4d1cc4c0f70c868992d0674b..f33e06061972154bbe6be6df39971274338c47e3 100644
--- a/src/d8.cc
+++ b/src/d8.cc
@@ -2434,7 +2434,7 @@ std::unique_ptr<SerializationData> Worker::GetMessage() {
while (!out_queue_.Dequeue(&result)) {
// If the worker is no longer running, and there are no messages in the
// queue, don't expect any more messages from it.
- if (!base::NoBarrier_Load(&running_)) break;
+ if (!base::Relaxed_Load(&running_)) break;
out_semaphore_.Wait();
}
return result;
@@ -2442,7 +2442,7 @@ std::unique_ptr<SerializationData> Worker::GetMessage() {
void Worker::Terminate() {
- base::NoBarrier_Store(&running_, false);
+ base::Relaxed_Store(&running_, false);
// Post NULL to wake the Worker thread message loop, and tell it to stop
// running.
PostMessage(NULL);
« no previous file with comments | « src/compiler-dispatcher/optimizing-compile-dispatcher.h ('k') | src/debug/debug.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698