- Timestamp:
- May 11, 2009 9:00:58 AM (16 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/include/VBoxFrameBuffer.h
r19134 r19570 25 25 26 26 #include "COMDefs.h" 27 #include <iprt/critsect.h> 27 28 28 29 /* Qt includes */ … … 222 223 } 223 224 224 void lock() { mMutex->lock(); }225 void unlock() { mMutex->unlock(); }225 void lock() { RTCritSectEnter(&mCritSect); } 226 void unlock() { RTCritSectLeave(&mCritSect); } 226 227 227 228 virtual uchar *address() = 0; … … 254 255 255 256 VBoxConsoleView *mView; 256 QMutex *mMutex;257 RTCRITSECT mCritSect; 257 258 int mWdt; 258 259 int mHgt; -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxFrameBuffer.cpp
r18635 r19570 45 45 46 46 VBoxFrameBuffer::VBoxFrameBuffer (VBoxConsoleView *aView) 47 : mView (aView) , mMutex (new QMutex (QMutex::Recursive))47 : mView (aView) 48 48 , mWdt (0), mHgt (0) 49 49 #if defined (Q_OS_WIN32) … … 53 53 AssertMsg (mView, ("VBoxConsoleView must not be null\n")); 54 54 mWinId = (mView && mView->viewport()) ? (ULONG64) mView->viewport()->winId() : 0; 55 int rc = RTCritSectInit(&mCritSect); 56 AssertRC(rc); 55 57 } 56 58 57 59 VBoxFrameBuffer::~VBoxFrameBuffer() 58 60 { 59 delete mMutex;61 RTCritSectDelete(&mCritSect); 60 62 } 61 63
Note:
See TracChangeset
for help on using the changeset viewer.