summaryrefslogtreecommitdiff
path: root/src/porting.h
diff options
context:
space:
mode:
authorkwolekr <mirrorisim@gmail.com>2013-02-17 01:47:49 -0500
committerkwolekr <mirrorisim@gmail.com>2013-02-25 23:08:26 -0500
commit5ec5b1cbd64a22e628be2cf03391883c44074811 (patch)
tree776d209306ce96d543e1b69a9726293e5f5f0fa5 /src/porting.h
parent76217939e05bdd8d06fa7113902a74b02deeb915 (diff)
downloadminetest-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.h5
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.