VirtualBox

vbox的更動 13511 路徑 trunk/include


忽略:
時間撮記:
2008-10-23 上午07:20:49 (16 年 以前)
作者:
vboxsync
訊息:

const

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/include/iprt/asm.h

    r12680 r13511  
    26422642 * @param   pv     The pointer value to assign to *ppv.
    26432643 */
    2644 DECLINLINE(void *) ASMAtomicXchgPtr(void * volatile *ppv, void *pv)
     2644DECLINLINE(void *) ASMAtomicXchgPtr(void * volatile *ppv, const void *pv)
    26452645{
    26462646#if ARCH_BITS == 32
     
    26652665#define ASMAtomicXchgHandle(ph, hNew, phRes) \
    26662666    do { \
    2667         *(void **)(phRes) = ASMAtomicXchgPtr((void * volatile *)(ph), (void *)(hNew)); \
     2667        *(void **)(phRes) = ASMAtomicXchgPtr((void * volatile *)(ph), (const void *)(hNew)); \
    26682668        AssertCompile(sizeof(*ph) == sizeof(void *)); \
    26692669        AssertCompile(sizeof(*phRes) == sizeof(void *)); \
     
    29062906 * @param   pvOld       The old value to *ppv compare with.
    29072907 */
    2908 DECLINLINE(bool) ASMAtomicCmpXchgPtr(void * volatile *ppv, void *pvNew, void *pvOld)
     2908DECLINLINE(bool) ASMAtomicCmpXchgPtr(void * volatile *ppv, const void *pvNew, const void *pvOld)
    29092909{
    29102910#if ARCH_BITS == 32
     
    32203220 * @param   ppvOld      Pointer store the old value at.
    32213221 */
    3222 DECLINLINE(bool) ASMAtomicCmpXchgExPtr(void * volatile *ppv, void *pvNew, void *pvOld, void **ppvOld)
     3222DECLINLINE(bool) ASMAtomicCmpXchgExPtr(void * volatile *ppv, const void *pvNew, const void *pvOld, void **ppvOld)
    32233223{
    32243224#if ARCH_BITS == 32
     
    42364236 * @param   pv      The pointer value to assigne to *ppv.
    42374237 */
    4238 DECLINLINE(void) ASMAtomicWritePtr(void * volatile *ppv, void *pv)
     4238DECLINLINE(void) ASMAtomicWritePtr(void * volatile *ppv, const void *pv)
    42394239{
    42404240#if ARCH_BITS == 32
     
    42554255 * @param   pv      The pointer value to assigne to *ppv.
    42564256 */
    4257 DECLINLINE(void) ASMAtomicUoWritePtr(void * volatile *ppv, void *pv)
     4257DECLINLINE(void) ASMAtomicUoWritePtr(void * volatile *ppv, const void *pv)
    42584258{
    42594259#if ARCH_BITS == 32
     
    42774277#define ASMAtomicWriteHandle(ph, hNew) \
    42784278    do { \
    4279         ASMAtomicWritePtr((void * volatile *)(ph), (void *)hNew); \
     4279        ASMAtomicWritePtr((void * volatile *)(ph), (const void *)hNew); \
    42804280        AssertCompile(sizeof(*ph) == sizeof(void*)); \
    42814281    } while (0)
     
    42924292#define ASMAtomicUoWriteHandle(ph, hNew) \
    42934293    do { \
    4294         ASMAtomicUoWritePtr((void * volatile *)(ph), (void *)hNew); \
     4294        ASMAtomicUoWritePtr((void * volatile *)(ph), (const void *)hNew); \
    42954295        AssertCompile(sizeof(*ph) == sizeof(void*)); \
    42964296    } while (0)
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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