VirtualBox

Changeset 37154 in vbox for trunk/include/iprt


Ignore:
Timestamp:
May 19, 2011 12:54:32 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
71834
Message:

RTThread[SG]etAffinity cleanup

Location:
trunk/include/iprt
Files:
2 edited

Legend:

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

    r36816 r37154  
    14431443# define RTThreadSelfName                               RT_MANGLER(RTThreadSelfName)
    14441444# define RTThreadSetAffinity                            RT_MANGLER(RTThreadSetAffinity)
     1445# define RTThreadSetAffinityToCpu                       RT_MANGLER(RTThreadSetAffinityToCpu)
    14451446# define RTThreadSetName                                RT_MANGLER(RTThreadSetName)
    14461447# define RTThreadSetType                                RT_MANGLER(RTThreadSetType)
  • trunk/include/iprt/thread.h

    r36596 r37154  
    587587 * Gets the affinity mask of the current thread.
    588588 *
    589  * @returns The affinity mask (bit 0 = logical cpu 0).
    590  */
    591 RTR3DECL(uint64_t) RTThreadGetAffinity(void);
     589 * @returns IPRT status code.
     590 * @param   pCpuSet         Where to return the CPU affienty set of the calling
     591 *                          thread.
     592 */
     593RTR3DECL(int) RTThreadGetAffinity(PRTCPUSET pCpuSet);
    592594
    593595/**
     
    595597 *
    596598 * @returns iprt status code.
    597  * @param   u64Mask         Affinity mask (bit 0 = logical cpu 0).
    598  */
    599 RTR3DECL(int) RTThreadSetAffinity(uint64_t u64Mask);
     599 * @param   pCpuSet         The set of CPUs this thread can run on.  NULL means
     600 *                          all CPUs.
     601 */
     602RTR3DECL(int) RTThreadSetAffinity(PCRTCPUSET pCpuSet);
     603
     604/**
     605 * Binds the thread to one specific CPU.
     606 *
     607 * @returns iprt status code.
     608 * @param   idCpu           The ID of the CPU to bind this thread to.  Use
     609 *                          NIL_RTCPUID to unbind it.
     610 */
     611RTR3DECL(int) RTThreadSetAffinityToCpu(RTCPUID idCpu);
    600612
    601613/**
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