VirtualBox

Changeset 2245 in vbox


Ignore:
Timestamp:
Apr 19, 2007 9:24:12 PM (18 years ago)
Author:
vboxsync
Message:

ASMAtomicXchgBool.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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 *
Note: See TracChangeset for help on using the changeset viewer.

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