diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-06-02 20:20:23 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-06-02 20:20:23 -0700 |
commit | f64e1852dc065c17d7c78b43a7cfb7fbe64e3cb4 (patch) | |
tree | 571bf874365e41a50976da0d15604e5d6f1edebb /src/support/threads.h | |
parent | b37bd96ea3345cf7015e9e925e0d33524cd1c3db (diff) | |
parent | e4a81f9ea487441e0c01f399d15026672fdeadf9 (diff) | |
download | binaryen-f64e1852dc065c17d7c78b43a7cfb7fbe64e3cb4.tar.gz binaryen-f64e1852dc065c17d7c78b43a7cfb7fbe64e3cb4.tar.bz2 binaryen-f64e1852dc065c17d7c78b43a7cfb7fbe64e3cb4.zip |
Merge pull request #560 from WebAssembly/func-running
Option to optimize while building modules
Diffstat (limited to 'src/support/threads.h')
-rw-r--r-- | src/support/threads.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/support/threads.h b/src/support/threads.h index 9a43ac699..ea9e53c13 100644 --- a/src/support/threads.h +++ b/src/support/threads.h @@ -79,6 +79,9 @@ private: void initialize(size_t num); public: + // Get the number of cores we can use. + static size_t getNumCores(); + // Get the singleton threadpool. This can return null // if there is just one thread available. static ThreadPool* get(); |