Implement GetCurrentProcessCpuCount for Unix and merge NumberOfProcesors implementati...
authorTom Deseyn <tom.deseyn@gmail.com>
Mon, 29 May 2017 13:46:10 +0000 (15:46 +0200)
committerJan Vorlicek <janvorli@microsoft.com>
Mon, 29 May 2017 13:46:10 +0000 (15:46 +0200)
commitee454e11d0c73820dde10ab710f9d6eccd4471f1
treecc18b73370f4ec65ae9fa9c34dd6a3ce65ea7f82
parentc08d7df65036795bc3284e18624827303a097c88
Implement GetCurrentProcessCpuCount for Unix and merge NumberOfProcesors implementations. (#11742)

* Implement GetCurrentProcessCpuCount for Unix and merge NumberOfProcessors implementations.

* Split GetCurrentProcessCpuCount in PAL and non-PAL parts

* gcenv.unix.cpp: GetCurrentProcessAffinityMask: revert, GetCurrentProcessCpuCount: add implementation

* bugfix: #if instead of #ifdef HAVE_SCHED_GETAFFINITY

* Remove PAL_GetCurrentProcessCpuCount

* gcenv.unix: implement GetCurrentProcessAffinityMask, GetCurrentProcessCpuCount

* numa.cpp: initialize g_cpuToAffinity[i].Number when numa.h is missing

* cleanup

* mscorwks_unixexports.src: Add GetProcessAffinityMask

* PR feedback

* Add GetProcessAffinityMask to mscordac_unixexports.src
src/dlls/mscordac/mscordac_unixexports.src
src/dlls/mscoree/mscorwks_unixexports.src
src/gc/unix/config.h.in
src/gc/unix/configure.cmake
src/gc/unix/gcenv.unix.cpp
src/pal/src/misc/sysinfo.cpp
src/pal/src/numa/numa.cpp
src/utilcode/util.cpp