VirtualBox

Ignore:
Timestamp:
Jun 9, 2010 12:14:59 PM (14 years ago)
Author:
vboxsync
Message:

iprt/asm.h,*: Revised the ASMAtomic*Ptr functions and macros. The new saves lots of unsafe (void * volatile *) casts as well as adding some type safety when using GCC (typeof rulez).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/generic/tls-generic.cpp

    r28800 r30111  
    8989        return VERR_INVALID_PARAMETER;
    9090
    91     ASMAtomicWritePtr((void * volatile *)&g_apfnDestructors[iTls], NULL);
     91    ASMAtomicWritePtr(&g_apfnDestructors[iTls], NULL);
    9292    rtThreadClearTlsEntry(iTls);
    9393    ASMAtomicBitClear(&g_au32AllocatedBitmap[0], iTls);
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