| Index: src/cpu-profiler.h
|
| diff --git a/src/cpu-profiler.h b/src/cpu-profiler.h
|
| index c1e75a101adb095fb53e49bc7b67140d1b0d04eb..4dc5643aa1bc73fe8ccbcba72492e07f0d71ed2a 100644
|
| --- a/src/cpu-profiler.h
|
| +++ b/src/cpu-profiler.h
|
| @@ -132,7 +132,7 @@ class ProfilerEventsProcessor : public base::Thread {
|
| // Thread control.
|
| virtual void Run();
|
| void StopSynchronously();
|
| - INLINE(bool running()) { return running_; }
|
| + INLINE(bool running()) { return !!base::NoBarrier_Load(&running_); }
|
| void Enqueue(const CodeEventsContainer& event);
|
|
|
| // Puts current stack into tick sample events buffer.
|
| @@ -163,7 +163,7 @@ class ProfilerEventsProcessor : public base::Thread {
|
|
|
| ProfileGenerator* generator_;
|
| Sampler* sampler_;
|
| - bool running_;
|
| + base::Atomic32 running_;
|
| // Sampling period in microseconds.
|
| const base::TimeDelta period_;
|
| UnboundQueue<CodeEventsContainer> events_buffer_;
|
|
|