diff options
author | kwolekr <mirrorisim@gmail.com> | 2013-02-17 01:47:49 -0500 |
---|---|---|
committer | kwolekr <mirrorisim@gmail.com> | 2013-02-25 23:08:26 -0500 |
commit | 5ec5b1cbd64a22e628be2cf03391883c44074811 (patch) | |
tree | 776d209306ce96d543e1b69a9726293e5f5f0fa5 /src/porting.h | |
parent | 76217939e05bdd8d06fa7113902a74b02deeb915 (diff) | |
download | minetest-5ec5b1cbd64a22e628be2cf03391883c44074811.tar.gz minetest-5ec5b1cbd64a22e628be2cf03391883c44074811.tar.bz2 minetest-5ec5b1cbd64a22e628be2cf03391883c44074811.zip |
Add multi-Emerge thread support
Diffstat (limited to 'src/porting.h')
-rw-r--r-- | src/porting.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/porting.h b/src/porting.h index 13b715557..53aad6171 100644 --- a/src/porting.h +++ b/src/porting.h @@ -104,6 +104,11 @@ std::string getDataPath(const char *subpath); void initializePaths(); /* + Get number of online processors in the system. +*/ +int getNumberOfProcessors(); + +/* Resolution is 10-20ms. Remember to check for overflows. Overflow can occur at any value higher than 10000000. |