- Timestamp:
- Oct 12, 2007 12:05:27 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/AutoLock.h
r4071 r5250 430 430 /// @todo (dmik) this will change when we switch to RTSemRW* 431 431 #define D() mM [i] = 0; /* end of array */ \ 432 ___CritSectEnterMulti ( strlen (mM), mS)432 ___CritSectEnterMulti ((unsigned) strlen (mM), mS) 433 433 434 434 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 } 436 441 AutoMultiLock (A(0), A(1), A(2)) 437 442 { C(3); B(0); B(1); B(2); D(); } … … 464 469 /// @todo (dmik) this will change when we switch to RTSemRW* 465 470 if (mLocked) 466 RTCritSectLeaveMultiple ( strlen (mM), mS);471 RTCritSectLeaveMultiple ((unsigned) strlen (mM), mS); 467 472 } 468 473 … … 490 495 AssertMsgReturn (mLocked, ("Already released all locks"), (void) 0); 491 496 /// @todo (dmik) this will change when we switch to RTSemRW* 492 RTCritSectLeaveMultiple ( strlen (mM), mS);497 RTCritSectLeaveMultiple ((unsigned) strlen (mM), mS); 493 498 mLocked = false; 494 499 } … … 503 508 { 504 509 AssertMsgReturn (!mLocked, ("Already entered all locks"), (void) 0); 505 ___CritSectEnterMulti ( strlen (mM), mS);510 ___CritSectEnterMulti ((unsigned) strlen (mM), mS); 506 511 mLocked = true; 507 512 }
Note:
See TracChangeset
for help on using the changeset viewer.