VirtualBox

Changeset 30111 in vbox for trunk/src/VBox/Runtime/r3/darwin


Ignore:
Timestamp:
Jun 9, 2010 12:14:59 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
62505
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/r3/darwin/sched-darwin.cpp

    r28800 r30111  
    270270        }
    271271    Assert(pProcessPriority != &g_aDefaultPriority);
    272     ASMAtomicUoWritePtr((void **)&g_pProcessPriority, pProcessPriority);
     272    ASMAtomicUoWritePtr(&g_pProcessPriority, pProcessPriority);
    273273
    274274    return VINF_SUCCESS;
Note: See TracChangeset for help on using the changeset viewer.

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