diff options
author | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-04-22 15:23:14 +0000 |
---|---|---|
committer | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-04-22 15:23:14 +0000 |
commit | 44c661ff151356ba1c49d7942d23aa1507237989 (patch) | |
tree | 7da1eef27134dbd3548686c296df7e1877f7541f /include/utils | |
parent | f6212b36b3ea099eaeb4a5ddc51f8b6f001e2d91 (diff) |
Add thread-per-core setting to SkThreadPool.
BUG=
R=scroggo@google.com, caryclark@google.com
Author: mtklein@google.com
Review URL: https://chromiumcodereview.appspot.com/13855009
git-svn-id: http://skia.googlecode.com/svn/trunk@8802 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/utils')
-rw-r--r-- | include/utils/SkThreadPool.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/utils/SkThreadPool.h b/include/utils/SkThreadPool.h index cc45fc2cd5..3c86158090 100644 --- a/include/utils/SkThreadPool.h +++ b/include/utils/SkThreadPool.h @@ -19,8 +19,9 @@ class SkThreadPool { public: /** - * Create a threadpool with exactly count (>=0) threads. + * Create a threadpool with count threads, or one thread per core if kThreadPerCore. */ + static const int kThreadPerCore = -1; explicit SkThreadPool(int count); ~SkThreadPool(); |