Changeset 69002 in vbox for trunk/src/VBox/Main/src-all
- Timestamp:
- Oct 6, 2017 12:49:53 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-all/ProgressImpl.cpp
r67242 r69002 42 42 #include "AutoCaller.h" 43 43 44 #include "VBoxEvents.h" 44 45 45 46 Progress::Progress() … … 168 169 169 170 HRESULT rc = S_OK; 171 rc = unconst(pEventSource).createObject(); 172 if (FAILED(rc)) throw rc; 173 174 rc = pEventSource->init(); 175 if (FAILED(rc)) throw rc; 170 176 171 177 // rc = Progress::init( … … 475 481 RTSemEventMultiSignal(mCompletedSem); 476 482 483 fireProgressTaskCompletedEvent(pEventSource, mId.toUtf16().raw()); 484 477 485 return S_OK; 478 486 } … … 563 571 vrc = VERR_CANCELLED; 564 572 } 573 ULONG actualPercent = 0; 574 pThis->getPercent(&actualPercent); 575 fireProgressPercentageChangedEvent(pThis->pEventSource, pThis->mId.toUtf16().raw(), actualPercent); 565 576 } 566 577 /* else ignored */ … … 813 824 m_ulOperationPercent = aPercent; 814 825 826 ULONG actualPercent = 0; 827 getPercent(&actualPercent); 828 fireProgressPercentageChangedEvent(pEventSource, mId.toUtf16().raw(), actualPercent); 829 815 830 return S_OK; 816 831 } … … 847 862 if (mWaitersCount > 0) 848 863 RTSemEventMultiSignal(mCompletedSem); 864 865 ULONG actualPercent = 0; 866 getPercent(&actualPercent); 867 fireProgressPercentageChangedEvent(pEventSource, mId.toUtf16().raw(), actualPercent); 849 868 850 869 return S_OK; … … 1075 1094 } 1076 1095 1096 HRESULT Progress::getEventSource(ComPtr<IEventSource> &aEventSource) 1097 { 1098 /* event source is const, no need to lock */ 1099 pEventSource.queryInterfaceTo(aEventSource.asOutParam()); 1100 return S_OK; 1101 } 1077 1102 1078 1103 // private internal helpers
Note:
See TracChangeset
for help on using the changeset viewer.