Changeset 7355 in vbox for trunk/src/VBox/Runtime/r3
- Timestamp:
- Mar 7, 2008 1:03:48 PM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 28778
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/posix/RTMpGetCount-posix.cpp
r7354 r7355 1 1 /* $Id$ */ 2 2 /** @file 3 * innotek Portable Runtime - System, POSIX.3 * innotek Portable Runtime - RTMpGetCount, POSIX. 4 4 */ 5 5 … … 38 38 39 39 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) 40 RTDECL(RTCPUID) RTMpGetCount(void) 46 41 { 47 42 int cCpus; NOREF(cCpus); … … 72 67 } 73 68 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.