Changeset 25813 in vbox
- Timestamp:
- Jan 13, 2010 5:24:35 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 56586
- Location:
- trunk
- Files:
-
- 3 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/Makefile.kmk
r25674 r25813 283 283 Global.cpp \ 284 284 Logging.cpp \ 285 AutoLock.cpp \286 285 Matching.cpp \ 287 286 xml/Settings.cpp \ … … 610 609 Global.cpp \ 611 610 Logging.cpp \ 612 AutoLock.cpp \613 611 VBoxDll.cpp \ 614 612 USBDeviceImpl.cpp \ … … 687 685 glue/initterm.cpp \ 688 686 glue/string.cpp \ 687 glue/AutoLock.cpp \ 689 688 glue/EventQueue.cpp \ 690 689 glue/ErrorInfo.cpp \ -
trunk/src/VBox/Main/glue/AutoLock.cpp
r25809 r25813 20 20 */ 21 21 22 #include "AutoLock.h"23 24 #include "Logging.h"25 26 22 #include <iprt/cdefs.h> 27 23 #include <iprt/critsect.h> … … 40 36 #include <iprt/stream.h> 41 37 38 #include "VBox/com/AutoLock.h" 42 39 #include <VBox/com/string.h> 43 40 … … 535 532 AssertMsg(m->acUnlockedInLeave[i] >= 1, ("m->cUnlockedInLeave[%d] is %d, must be >=1!", i, m->acUnlockedInLeave[i])); 536 533 537 #ifdef RT_LOCK_STRICT538 LogFlowFunc(("LOCKVAL: will unlock handle %d [%s] %d times\n", i, pHandle->describe(), m->acUnlockedInLeave[i]));539 #endif540 541 534 for (uint32_t left = m->acUnlockedInLeave[i]; 542 535 left; … … 566 559 { 567 560 AssertMsg(m->acUnlockedInLeave[i] != 0, ("m->cUnlockedInLeave[%d] is 0! enter() without leave()?", i)); 568 569 #ifdef RT_LOCK_STRICT570 LogFlowFunc(("LOCKVAL: will lock handle %d [%s] %d times\n", i, pHandle->describe(), m->acUnlockedInLeave[i]));571 #endif572 561 573 562 for (; m->acUnlockedInLeave[i]; --m->acUnlockedInLeave[i]) … … 600 589 AssertMsg(m->acUnlockedInLeave[i] >= 1, ("m->cUnlockedInLeave[%d] is %d, must be >=1!", i, m->acUnlockedInLeave[i])); 601 590 602 #ifdef RT_LOCK_STRICT603 LogFlowFunc(("LOCKVAL: will unlock handle %d [%s] %d times\n", i, pHandle->describe(), m->acUnlockedInLeave[i]));604 #endif605 606 591 for (uint32_t left = m->acUnlockedInLeave[i]; 607 592 left; … … 631 616 if (!pHandle->isWriteLockOnCurrentThread()) 632 617 { 633 #ifdef RT_LOCK_STRICT634 LogFlowFunc(("LOCKVAL: will lock handle %d [%s] %d times\n", i, pHandle->describe(), m->acUnlockedInLeave[i]));635 #endif636 637 618 for (; m->acUnlockedInLeave[i]; --m->acUnlockedInLeave[i]) 638 619 callLockImpl(*pHandle); -
trunk/src/VBox/Main/glue/initterm.cpp
r25812 r25813 54 54 #include "VBox/com/assert.h" 55 55 #include "VBox/com/EventQueue.h" 56 #include "VBox/com/AutoLock.h" 56 57 57 58 #include "../include/Logging.h" … … 539 540 #endif /* !defined (VBOX_WITH_XPCOM) */ 540 541 542 // for both COM and XPCOM, we only get here if this is the main thread; 543 // only then initialize the autolock system (AutoLock.cpp) 544 Assert(RTThreadIsMain(RTThreadSelf())); 545 util::InitAutoLockSystem(); 546 541 547 AssertComRC (rc); 542 548 -
trunk/src/VBox/Main/include/VirtualBoxBase.h
r25288 r25813 30 30 31 31 #include "VBox/com/ErrorInfo.h" 32 #include <VBox/com/SupportErrorInfo.h> 32 #include "VBox/com/SupportErrorInfo.h" 33 #include "VBox/com/AutoLock.h" 33 34 34 35 #include "VBox/com/VirtualBox.h" … … 40 41 class File; 41 42 } 42 43 #include "AutoLock.h"44 43 45 44 using namespace com;
Note:
See TracChangeset
for help on using the changeset viewer.