VirtualBox

Changeset 53033 in vbox for trunk


Ignore:
Timestamp:
Oct 10, 2014 6:18:03 PM (10 years ago)
Author:
vboxsync
Message:

IPRT: store-inmem: use ASMAtomicIncU32

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/crypto/store-inmem.cpp

    r51781 r53033  
    3232#include <iprt/crypto/store.h>
    3333
     34#include <iprt/asm.h>
    3435#include <iprt/err.h>
    3536#include <iprt/mem.h>
     
    254255    {
    255256        pSearch->auOpaque[1] = i + 1;
    256         pThis->papCerts[i]->Core.cRefs++;
    257         return &pThis->papCerts[i]->Core.Public;
     257        PRTCRCERTCTXINT pCertCtx = &pThis->papCerts[i]->Core;
     258        ASMAtomicIncU32(&pCertCtx->cRefs);
     259        return &pCertCtx->Public;
    258260    }
    259261    return NULL;
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