Changeset 37154 in vbox for trunk/include/iprt
- Timestamp:
- May 19, 2011 12:54:32 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 71834
- Location:
- trunk/include/iprt
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/mangling.h
r36816 r37154 1443 1443 # define RTThreadSelfName RT_MANGLER(RTThreadSelfName) 1444 1444 # define RTThreadSetAffinity RT_MANGLER(RTThreadSetAffinity) 1445 # define RTThreadSetAffinityToCpu RT_MANGLER(RTThreadSetAffinityToCpu) 1445 1446 # define RTThreadSetName RT_MANGLER(RTThreadSetName) 1446 1447 # define RTThreadSetType RT_MANGLER(RTThreadSetType) -
trunk/include/iprt/thread.h
r36596 r37154 587 587 * Gets the affinity mask of the current thread. 588 588 * 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 */ 593 RTR3DECL(int) RTThreadGetAffinity(PRTCPUSET pCpuSet); 592 594 593 595 /** … … 595 597 * 596 598 * @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 */ 602 RTR3DECL(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 */ 611 RTR3DECL(int) RTThreadSetAffinityToCpu(RTCPUID idCpu); 600 612 601 613 /**
Note:
See TracChangeset
for help on using the changeset viewer.