VirtualBox

Changeset 7355 in vbox for trunk/src/VBox/Runtime/r3


Ignore:
Timestamp:
Mar 7, 2008 1:03:48 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
28778
Message:

for fun.

File:
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/posix/RTMpGetCount-posix.cpp

    r7354 r7355  
    11/* $Id$ */
    22/** @file
    3  * innotek Portable Runtime - System, POSIX.
     3 * innotek Portable Runtime - RTMpGetCount, POSIX.
    44 */
    55
     
    3838
    3939
    40 /**
    41  * Gets the number of logical (not physical) processors in the system.
    42  *
    43  * @returns Number of logical processors in the system.
    44  */
    45 RTR3DECL(unsigned) RTSystemProcessorGetCount(void)
     40RTDECL(RTCPUID) RTMpGetCount(void)
    4641{
    4742    int cCpus; NOREF(cCpus);
     
    7267}
    7368
    74 
    75 /**
    76  * Gets the active logical processor mask.
    77  *
    78  * @returns Active logical processor mask. (bit 0 == logical cpu 0)
    79  */
    80 RTR3DECL(uint64_t) RTSystemProcessorGetActiveMask(void)
    81 {
    82     int cCpus = RTSystemProcessorGetCount();
    83     return ((uint64_t)1 << cCpus) - 1;
    84 }
    85 
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