VirtualBox

Changeset 64108 in vbox for trunk/src/VBox/Main/src-server


Ignore:
Timestamp:
Sep 30, 2016 12:55:57 PM (8 years ago)
Author:
vboxsync
Message:

Main/ThreadTask: bugref:8609: properly implement isAsync(). Regression from bugref:8482.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/MediumImpl.cpp

    r63969 r64108  
    224224          mMedium(aMedium),
    225225          mMediumCaller(aMedium),
    226           mThread(NIL_RTTHREAD),
    227226          mProgress(aProgress),
    228227          mVirtualBoxCaller(NULL)
     
    259258    {
    260259        /* send the notification of completion.*/
    261         if (!mProgress.isNull())
     260        if (   isAsync()
     261            && !mProgress.isNull())
    262262            mProgress->i_notifyComplete(mRC);
    263263    }
     
    265265    HRESULT rc() const { return mRC; }
    266266    bool isOk() const { return SUCCEEDED(rc()); }
    267 
    268     bool isAsync() { return mThread != NIL_RTTHREAD; }
    269267
    270268    const ComPtr<Progress>& GetProgressObject() const {return mProgress;}
     
    312310protected:
    313311    HRESULT mRC;
    314     RTTHREAD mThread;
    315312
    316313private:
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