VirtualBox

Changeset 5250 in vbox for trunk


Ignore:
Timestamp:
Oct 12, 2007 12:05:27 AM (17 years ago)
Author:
vboxsync
Message:

strlen->size_t + RTCritSectLeaveMultiple(unsigned,) => noise. fixed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/AutoLock.h

    r4071 r5250  
    430430    /// @todo (dmik) this will change when we switch to RTSemRW*
    431431    #define D() mM [i] = 0; /* end of array */ \
    432                 ___CritSectEnterMulti (strlen (mM), mS)
     432                ___CritSectEnterMulti ((unsigned) strlen (mM), mS)
    433433
    434434    AutoMultiLock (A(0), A(1))
    435     { C(2); B(0); B(1);  D(); }
     435    {
     436        C(2);
     437        B(0);
     438        B(1);
     439        D();
     440    }
    436441    AutoMultiLock (A(0), A(1), A(2))
    437442    { C(3); B(0); B(1); B(2); D(); }
     
    464469        /// @todo (dmik) this will change when we switch to RTSemRW*
    465470        if (mLocked)
    466             RTCritSectLeaveMultiple (strlen (mM), mS);
     471            RTCritSectLeaveMultiple ((unsigned) strlen (mM), mS);
    467472    }
    468473
     
    490495        AssertMsgReturn (mLocked, ("Already released all locks"), (void) 0);
    491496        /// @todo (dmik) this will change when we switch to RTSemRW*
    492         RTCritSectLeaveMultiple (strlen (mM), mS);
     497        RTCritSectLeaveMultiple ((unsigned) strlen (mM), mS);
    493498        mLocked = false;
    494499    }
     
    503508    {
    504509        AssertMsgReturn (!mLocked, ("Already entered all locks"), (void) 0);
    505         ___CritSectEnterMulti (strlen (mM), mS);
     510        ___CritSectEnterMulti ((unsigned) strlen (mM), mS);
    506511        mLocked = true;
    507512    }
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