diff options
author | Geoff Norton <grompf@gmail.com> | 2015-03-11 10:55:28 -0700 |
---|---|---|
committer | Geoff Norton <grompf@gmail.com> | 2015-03-12 10:18:45 -0700 |
commit | efa5b1ea045a34fdecce637bb5c6ead64dbce19c (patch) | |
tree | d0b758436cb57cc42cbe0a7ae5b003e607a2e78c /src/vm/util.cpp | |
parent | f874ef9774f304665aa1bc85c1ab3fbb78decefe (diff) | |
download | coreclr-efa5b1ea045a34fdecce637bb5c6ead64dbce19c.tar.gz coreclr-efa5b1ea045a34fdecce637bb5c6ead64dbce19c.tar.bz2 coreclr-efa5b1ea045a34fdecce637bb5c6ead64dbce19c.zip |
Implement GetLogicalCpuCountFromOS in the PAL for OSX
Diffstat (limited to 'src/vm/util.cpp')
-rw-r--r-- | src/vm/util.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vm/util.cpp b/src/vm/util.cpp index 6fd3cc2b34..f9f8718a22 100644 --- a/src/vm/util.cpp +++ b/src/vm/util.cpp @@ -1948,8 +1948,9 @@ DWORD GetLogicalCpuCountFromOS() static DWORD val = 0; DWORD retVal = 0; -// UNIXTODO: Implement the functionality in PAL? -#ifndef FEATURE_PAL +#ifdef FEATURE_PAL + retVal = PAL_GetLogicalCpuCountFromOS(); +#else // FEATURE_PAL DWORD nEntries = 0; @@ -2020,7 +2021,6 @@ lDone: { delete[] pslpi; // release the memory allocated for the SLPI array } - #endif // FEATURE_PAL return retVal; |