diff options
author | Pierre Ossman <ossman@cendio.se> | 2015-11-13 14:07:52 +0100 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2015-11-27 11:12:57 +0100 |
commit | 7b63a7cef5824cb1d0475855e179d54f631f3e7d (patch) | |
tree | 9ac8150bb665f361e62fe411be8e6e92ed45248b /common/os/Thread.h | |
parent | b74728f9d653ece2d25f26aa563f7e5ecbdc4023 (diff) | |
download | tigervnc-7b63a7cef5824cb1d0475855e179d54f631f3e7d.tar.gz tigervnc-7b63a7cef5824cb1d0475855e179d54f631f3e7d.zip |
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.
Diffstat (limited to 'common/os/Thread.h')
-rw-r--r-- | common/os/Thread.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/common/os/Thread.h b/common/os/Thread.h index 41d94868..1a9aa54b 100644 --- a/common/os/Thread.h +++ b/common/os/Thread.h @@ -32,6 +32,9 @@ namespace os { bool isRunning(); + public: + static size_t getSystemCPUCount(); + protected: virtual void worker() = 0; |