VirtualBox

Changeset 2245

Show
Ignore:
Timestamp:
04/19/07 23:24:12 (2 years ago)
Author:
vboxsync
Message:

ASMAtomicXchgBool.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/include/iprt/asm.h

    r2144 r2245  
    17651765 
    17661766/** 
     1767 * Atomically Exchange a bool value. 
     1768 * 
     1769 * @returns Current *pf value 
     1770 * @param   pf      Pointer to the 8-bit variable to update. 
     1771 * @param   f       The 8-bit value to assign to *pi8. 
     1772 */ 
     1773DECLINLINE(bool) ASMAtomicXchgBool(volatile bool *pf, bool f) 
     1774{ 
     1775    return (bool)ASMAtomicXchgU8((volatile uint8_t *)pf, (uint8_t)f); 
     1776} 
     1777 
     1778 
     1779/** 
    17671780 * Atomically Exchange an unsigned 16-bit value. 
    17681781 * 

© 2008 Sun Microsystems, Inc.
ContactPrivacy policy