commit | 7b63a7cef5824cb1d0475855e179d54f631f3e7d | [log] [tgz] |
---|---|---|
author | Pierre Ossman <ossman@cendio.se> | Fri Nov 13 14:07:52 2015 +0100 |
committer | Pierre Ossman <ossman@cendio.se> | Fri Nov 27 11:12:57 2015 +0100 |
tree | 9ac8150bb665f361e62fe411be8e6e92ed45248b | |
parent | b74728f9d653ece2d25f26aa563f7e5ecbdc4023 [diff] [blame] |
Create one decode thread for each CPU We can start creating more decoding threads now that we handle rect ordering properly. No point in creating more threads than there are CPUs though.
diff --git a/common/os/Thread.h b/common/os/Thread.h index 41d9486..1a9aa54 100644 --- a/common/os/Thread.h +++ b/common/os/Thread.h
@@ -32,6 +32,9 @@ bool isRunning(); + public: + static size_t getSystemCPUCount(); + protected: virtual void worker() = 0;