VirtualBox

Changeset 11256 in vbox for trunk/src/VBox/Runtime


Ignore:
Timestamp:
Aug 8, 2008 2:17:59 PM (16 years ago)
Author:
vboxsync
Message:

Runtime: implement RTMpGetCount/RTMpGetOnlineCount.

Location:
trunk/src/VBox/Runtime
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/Makefile.kmk

    r11239 r11256  
    498498        r3/posix/process-posix.cpp \
    499499        r3/posix/rand-posix.cpp \
    500         r3/posix/RTMpGetCount-posix.cpp \
    501500        r3/posix/RTTimeNow-posix.cpp \
    502501        r3/posix/semevent-posix.cpp \
  • trunk/src/VBox/Runtime/r3/solaris/mp-solaris.cpp

    r11241 r11256  
    189189}
    190190
     191RTDECL(RTCPUID) RTMpGetCount(void)
     192{
     193    /*
     194     * Solaris has sysconf.
     195     */
     196    return sysconf(_SC_NPROCESSORS_CONF);
     197}
     198
     199RTDECL(RTCPUID) RTMpGetOnlineCount(void)
     200{
     201    /*
     202     * Solaris has sysconf.
     203     */
     204    return sysconf(_SC_NPROCESSORS_ONLN);
     205}
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette