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

Unified Diff: src/core/SkTaskGroup.h

Issue 1193493003: Modernize atomics in SkTaskGroup's threadpool. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 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 | « include/core/SkAtomics.h ('k') | src/core/SkTaskGroup.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkTaskGroup.h
diff --git a/src/core/SkTaskGroup.h b/src/core/SkTaskGroup.h
index 14a52c6aac1aadd1d3393466200fec43f4bf0e45..8c7369da25caa9b124bc3486f74ce701c086095e 100644
--- a/src/core/SkTaskGroup.h
+++ b/src/core/SkTaskGroup.h
@@ -9,6 +9,7 @@
#define SkTaskGroup_DEFINED
#include "SkTypes.h"
+#include "SkAtomics.h"
struct SkRunnable;
@@ -45,7 +46,7 @@ private:
void add (void_fn, void* arg);
void batch(void_fn, void* args, int N, size_t stride);
- /*atomic*/ int32_t fPending;
+ SkAtomic<int32_t> fPending;
};
#endif//SkTaskGroup_DEFINED
« no previous file with comments | « include/core/SkAtomics.h ('k') | src/core/SkTaskGroup.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698