aboutsummaryrefslogtreecommitdiffstats
path: root/common/os/Thread.h
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2015-11-13 14:07:52 +0100
committerPierre Ossman <ossman@cendio.se>2015-11-27 11:12:57 +0100
commit7b63a7cef5824cb1d0475855e179d54f631f3e7d (patch)
tree9ac8150bb665f361e62fe411be8e6e92ed45248b /common/os/Thread.h
parentb74728f9d653ece2d25f26aa563f7e5ecbdc4023 (diff)
downloadtigervnc-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.h3
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;