Changeset 64108 in vbox for trunk/src/VBox/Main/src-server
- Timestamp:
- Sep 30, 2016 12:55:57 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/MediumImpl.cpp
r63969 r64108 224 224 mMedium(aMedium), 225 225 mMediumCaller(aMedium), 226 mThread(NIL_RTTHREAD),227 226 mProgress(aProgress), 228 227 mVirtualBoxCaller(NULL) … … 259 258 { 260 259 /* send the notification of completion.*/ 261 if (!mProgress.isNull()) 260 if ( isAsync() 261 && !mProgress.isNull()) 262 262 mProgress->i_notifyComplete(mRC); 263 263 } … … 265 265 HRESULT rc() const { return mRC; } 266 266 bool isOk() const { return SUCCEEDED(rc()); } 267 268 bool isAsync() { return mThread != NIL_RTTHREAD; }269 267 270 268 const ComPtr<Progress>& GetProgressObject() const {return mProgress;} … … 312 310 protected: 313 311 HRESULT mRC; 314 RTTHREAD mThread;315 312 316 313 private:
Note:
See TracChangeset
for help on using the changeset viewer.