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

Unified Diff: src/sweeper-thread.cc

Issue 316133002: Move atomic ops and related files to base library (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: updates Created 6 years, 6 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/sweeper-thread.h ('k') | src/unbound-queue.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/sweeper-thread.cc
diff --git a/src/sweeper-thread.cc b/src/sweeper-thread.cc
index 9e28e8dbaf8c04612369520e1fe92a53c3478647..ea2553dfaa4b22189ee3a0f0d3fa59f0c75fc5e3 100644
--- a/src/sweeper-thread.cc
+++ b/src/sweeper-thread.cc
@@ -23,7 +23,7 @@ SweeperThread::SweeperThread(Isolate* isolate)
end_sweeping_semaphore_(0),
stop_semaphore_(0) {
ASSERT(!FLAG_job_based_sweeping);
- NoBarrier_Store(&stop_thread_, static_cast<AtomicWord>(false));
+ base::NoBarrier_Store(&stop_thread_, static_cast<base::AtomicWord>(false));
}
@@ -36,7 +36,7 @@ void SweeperThread::Run() {
while (true) {
start_sweeping_semaphore_.Wait();
- if (Acquire_Load(&stop_thread_)) {
+ if (base::Acquire_Load(&stop_thread_)) {
stop_semaphore_.Signal();
return;
}
@@ -49,7 +49,7 @@ void SweeperThread::Run() {
void SweeperThread::Stop() {
- Release_Store(&stop_thread_, static_cast<AtomicWord>(true));
+ base::Release_Store(&stop_thread_, static_cast<base::AtomicWord>(true));
start_sweeping_semaphore_.Signal();
stop_semaphore_.Wait();
Join();
« no previous file with comments | « src/sweeper-thread.h ('k') | src/unbound-queue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698