VirtualBox

Changeset 24181 in vbox for trunk/src/VBox/Runtime/common


Ignore:
Timestamp:
Oct 30, 2009 10:51:56 AM (15 years ago)
Author:
vboxsync
Message:

VMM,SUPDrv,IPRT: Always initialize RTSPINLOCKTMP structures.

Location:
trunk/src/VBox/Runtime/common/misc
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/misc/cache.cpp

    r21337 r24181  
    195195RTDECL(int) RTCacheRequest(PRTOBJCACHE pCache, void **ppObj)
    196196{
    197     RTSPINLOCKTMP spinlockTmp;
     197    RTSPINLOCKTMP spinlockTmp = RTSPINLOCKTMP_INITIALIZER;
    198198
    199199    if (pCache->SpinlockRequest != NIL_RTSPINLOCK)
     
    264264RTDECL(int) RTCacheInsert(PRTOBJCACHE pCache, void *pObj)
    265265{
    266     RTSPINLOCKTMP spinlockTmp;
     266    RTSPINLOCKTMP spinlockTmp = RTSPINLOCKTMP_INITIALIZER;
    267267    int rc = VINF_SUCCESS;
    268268
  • trunk/src/VBox/Runtime/common/misc/handletable.cpp

    r21337 r24181  
    131131{
    132132    PRTHANDLETABLEINT   pThis;
    133     RTSPINLOCKTMP       Tmp;
     133    RTSPINLOCKTMP       Tmp = RTSPINLOCKTMP_INITIALIZER;
    134134    uint32_t            i1;
    135135    uint32_t            i;
  • trunk/src/VBox/Runtime/common/misc/handletablectx.cpp

    r21337 r24181  
    5050{
    5151    PRTHANDLETABLEINT   pThis;
    52     RTSPINLOCKTMP       Tmp;
     52    RTSPINLOCKTMP       Tmp /*= no init */;
    5353    int                 rc;
    5454
     
    227227    PRTHTENTRYCTX       pEntry;
    228228    PRTHANDLETABLEINT   pThis;
    229     RTSPINLOCKTMP       Tmp;
     229    RTSPINLOCKTMP       Tmp /*= no init */;
    230230
    231231    /* validate the input */
     
    271271    PRTHTENTRYCTX       pEntry;
    272272    PRTHANDLETABLEINT   pThis;
    273     RTSPINLOCKTMP       Tmp;
     273    RTSPINLOCKTMP       Tmp /*= no init */;
    274274
    275275    /* validate the input */
  • trunk/src/VBox/Runtime/common/misc/handletablesimple.cpp

    r21337 r24181  
    6161     * Allocation loop.
    6262     */
    63     RTSPINLOCKTMP Tmp;
     63    RTSPINLOCKTMP Tmp /*= no init */;
    6464    rtHandleTableLock(pThis, &Tmp);
    6565
     
    217217
    218218    /* acquire the lock */
    219     RTSPINLOCKTMP Tmp;
     219    RTSPINLOCKTMP Tmp /*= no init */;
    220220    rtHandleTableLock(pThis, &Tmp);
    221221
     
    258258
    259259    /* acquire the lock */
    260     RTSPINLOCKTMP Tmp;
     260    RTSPINLOCKTMP Tmp /*= no init */;
    261261    rtHandleTableLock(pThis, &Tmp);
    262262
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