VirtualBox

Changeset 30115 in vbox for trunk/src


Ignore:
Timestamp:
Jun 9, 2010 12:45:54 PM (15 years ago)
Author:
vboxsync
Message:

iprt/asm.h,*: Added ASMAtomicWriteNullPtr and ASMAtomicUoWriteNullPtr to better deal with NULL being 0 in C++.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/VBoxNetFlt/solaris/VBoxNetFlt-solaris.c

    r30112 r30115  
    944944    switch (pStream->Type)
    945945    {
    946         case kIp4Stream:        ASMAtomicUoWriteNullPtr(pStream->pThis->u.s.pvIp4Stream);     break;
    947         case kIp6Stream:        ASMAtomicUoWriteNullPtr(pStream->pThis->u.s.pvIp6Stream);     break;
    948         case kArpStream:        ASMAtomicUoWriteNullPtr(pStream->pThis->u.s.pvArpStream);     break;
    949         case kPromiscStream:    ASMAtomicUoWriteNullPtr(pStream->pThis->u.s.pvPromiscStream); break;
     946        case kIp4Stream:        ASMAtomicUoWriteNullPtr(&pStream->pThis->u.s.pvIp4Stream);     break;
     947        case kIp6Stream:        ASMAtomicUoWriteNullPtr(&pStream->pThis->u.s.pvIp6Stream);     break;
     948        case kArpStream:        ASMAtomicUoWriteNullPtr(&pStream->pThis->u.s.pvArpStream);     break;
     949        case kPromiscStream:    ASMAtomicUoWriteNullPtr(&pStream->pThis->u.s.pvPromiscStream); break;
    950950        default:    /* Heh. */
    951951        {
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