diff options
author | 2018-04-13 11:39:50 -0400 | |
---|---|---|
committer | 2018-04-16 19:06:40 +0000 | |
commit | 945918714b22a5a8365bca8f7e95d9519c3e2c6c (patch) | |
tree | 67e67d5fe4ec013b91fc06ca6dfa41dc699fa25f /src/core | |
parent | 575c21bf74767d89b54fefb4a6697cb295d4eb95 (diff) |
Simplify the operation on atomic fIsFinishing
Bug: skia:
Change-Id: I7ffe9bc11d211b0c1a4873b28ad4d0f574a6148b
Reviewed-on: https://skia-review.googlesource.com/121326
Reviewed-by: Herb Derby <herb@google.com>
Commit-Queue: Yuqian Li <liyuqian@google.com>
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/SkTaskGroup2D.cpp | 2 | ||||
-rw-r--r-- | src/core/SkTaskGroup2D.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/core/SkTaskGroup2D.cpp b/src/core/SkTaskGroup2D.cpp index 32bbf8650a..59eecf9f9a 100644 --- a/src/core/SkTaskGroup2D.cpp +++ b/src/core/SkTaskGroup2D.cpp @@ -19,7 +19,7 @@ void SkTaskGroup2D::addColumn() { } void SkTaskGroup2D::finish() { - fIsFinishing.store(true, std::memory_order_relaxed); + fIsFinishing = true; fThreadsGroup->wait(); } diff --git a/src/core/SkTaskGroup2D.h b/src/core/SkTaskGroup2D.h index 851db61c06..20915cf9d7 100644 --- a/src/core/SkTaskGroup2D.h +++ b/src/core/SkTaskGroup2D.h @@ -59,7 +59,7 @@ public: void finish(); // wait and finish all tasks (no more tasks can be added after calling this) SK_ALWAYS_INLINE bool isFinishing() const { - return fIsFinishing.load(std::memory_order_relaxed); + return fIsFinishing; } protected: |