VirtualBox

Changeset 54415 in vbox for trunk/include


Ignore:
Timestamp:
Feb 24, 2015 3:26:17 AM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
98516
Message:

IPRT/r0drv/mp: Added RTMpCurSetIndex and RTMpCurSetIndexAndId.

Location:
trunk/include/iprt
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/mangling.h

    r54411 r54415  
    946946# define RTMpCpuIdFromSetIndex                          RT_MANGLER(RTMpCpuIdFromSetIndex)
    947947# define RTMpCpuIdToSetIndex                            RT_MANGLER(RTMpCpuIdToSetIndex)
     948# define RTMpCurSetIndex                                RT_MANGLER(RTMpCurSetIndex)
     949# define RTMpCurSetIndexAndId                           RT_MANGLER(RTMpCurSetIndexAndId)
    948950# define RTMpGetArraySize                               RT_MANGLER(RTMpGetArraySize)
    949951# define RTMpGetCount                                   RT_MANGLER(RTMpGetCount)
  • trunk/include/iprt/mp.h

    r54408 r54415  
    4848 */
    4949RTDECL(RTCPUID) RTMpCpuId(void);
     50
     51/**
     52 * Get the CPU set index of the CPU executing the call.
     53 *
     54 * Same scheduling warnings as for RTMpCpuId().
     55 *
     56 * @returns CPU set index.
     57 */
     58RTDECL(int) RTMpCurSetIndex(void);
     59
     60/**
     61 * Get the CPU set index and identifier of the CPU executing the call.
     62 *
     63 * Same scheduling warnings as for RTMpCpuId().
     64 *
     65 * @returns CPU set index.
     66 * @param   pidCpu      Where to return the CPU identifier. (not optional)
     67 */
     68RTDECL(int) RTMpCurSetIndexAndId(PRTCPUID pidCpu);
    5069
    5170/**
Note: See TracChangeset for help on using the changeset viewer.

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