File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -259,6 +259,16 @@ int get_num_procs(void) {
259
259
}
260
260
#endif
261
261
262
+ #ifdef OS_AIX
263
+ int get_num_procs (void ) {
264
+ static int nums = 0 ;
265
+ if (!nums ) nums = sysconf (_SC_NPROCESSORS_CONF );
266
+ return nums ;
267
+ }
268
+ #endif
269
+
270
+
271
+
262
272
#ifdef OS_WINDOWS
263
273
264
274
int get_num_procs (void ) {
@@ -1738,6 +1748,22 @@ int get_num_procs(void) {
1738
1748
return nums ;
1739
1749
}
1740
1750
#endif
1751
+
1752
+ #ifdef OS_HAIKU
1753
+ int get_num_procs (void ) {
1754
+ static int nums = 0 ;
1755
+ if (!nums ) nums = sysconf (_SC_NPROCESSORS_CONF );
1756
+ return nums ;
1757
+ }
1758
+ #endif
1759
+
1760
+ #ifdef OS_AIX
1761
+ int get_num_procs (void ) {
1762
+ static int nums = 0 ;
1763
+ if (!nums ) nums = sysconf (_SC_NPROCESSORS_CONF );
1764
+ return nums ;
1765
+ }
1766
+ #endif
1741
1767
1742
1768
#ifdef OS_WINDOWS
1743
1769
You can’t perform that action at this time.
0 commit comments