Changeset 58552 in vbox
- Timestamp:
- Nov 3, 2015 2:55:58 PM (9 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 5 edited
-
include/GuestSessionImpl.h (modified) (1 diff)
-
include/ThreadTask.h (modified) (1 diff)
-
src-client/GuestProcessImpl.cpp (modified) (4 diffs)
-
src-client/GuestSessionImpl.cpp (modified) (3 diffs)
-
src-client/GuestSessionImplTasks.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/GuestSessionImpl.h
r58521 r58552 58 58 } 59 59 60 ComObjPtr<Progress> GetProgressObject() const;60 const ComObjPtr<Progress>& GetProgressObject() const {return mProgress;} 61 61 62 62 protected: -
trunk/src/VBox/Main/include/ThreadTask.h
r58519 r58552 40 40 41 41 protected: 42 ThreadTask():m_ strTaskName("GenericTask"){};42 ThreadTask():m_pThread(NULL), m_strTaskName("GenericTask"){}; 43 43 PRTTHREAD m_pThread; 44 44 Utf8Str m_strTaskName; -
trunk/src/VBox/Main/src-client/GuestProcessImpl.cpp
r58521 r58552 65 65 66 66 GuestProcessTask(GuestProcess *pProcess) 67 : mProcess(pProcess), 68 mRC(VINF_SUCCESS) { } 67 : ThreadTask("GenericGuestProcessTask") 68 , mProcess(pProcess) 69 , mRC(VINF_SUCCESS) { } 69 70 70 71 virtual ~GuestProcessTask(void) { } … … 1136 1137 LogFlowThisFuncEnter(); 1137 1138 1138 int vrc ;1139 int vrc = VINF_SUCCESS; 1139 1140 HRESULT hr = S_OK; 1140 1141 … … 1146 1147 { 1147 1148 delete pTask; 1148 Log Rel2(("GuestProcess: Could not create GuestProcessStartTask object \n"));1149 throw hr = E_FAIL;1150 } 1151 1149 LogFlow(("GuestProcess: Could not create GuestProcessStartTask object \n")); 1150 throw VERR_MEMOBJ_INIT_FAILED; 1151 } 1152 LogFlow(("GuestProcess: Successfully created GuestProcessStartTask object \n")); 1152 1153 //this function delete pTask in case of exceptions, so there is no need in the call of delete operator 1153 1154 hr = pTask->createThread(); … … 1157 1158 vrc = VERR_NO_MEMORY; 1158 1159 } 1159 catch(...) 1160 { 1161 LogRel2(("GuestProcess: Could not create thread for GuestProcessStartTask task \n")); 1162 if (hr == E_FAIL) 1163 vrc = VERR_NO_MEMORY; 1160 catch(int eVRC) 1161 { 1162 vrc = eVRC; 1163 LogFlow(("GuestSession: Could not create thread for GuestProcessStartTask task %Rrc\n", vrc)); 1164 1164 } 1165 1165 -
trunk/src/VBox/Main/src-client/GuestSessionImpl.cpp
r58521 r58552 1720 1720 1721 1721 HRESULT hr = S_OK; 1722 int vrc ;1722 int vrc = VINF_SUCCESS; 1723 1723 1724 1724 GuestSessionTaskInternalOpen* pTask = NULL; … … 1729 1729 { 1730 1730 delete pTask; 1731 Log Rel2(("GuestSession: Could not create GuestSessionTaskInternalOpen object \n"));1732 throw hr = E_FAIL;1731 LogFlow(("GuestSession: Could not create GuestSessionTaskInternalOpen object \n")); 1732 throw VERR_MEMOBJ_INIT_FAILED; 1733 1733 } 1734 1734 … … 1743 1743 vrc = VERR_NO_MEMORY; 1744 1744 } 1745 catch(...) 1746 { 1747 LogRel2(("GuestSession: Could not create thread for GuestSessionTaskInternalOpen task \n")); 1748 if (hr == E_FAIL) 1749 vrc = VERR_NO_MEMORY; 1745 catch(int eVRC) 1746 { 1747 vrc = eVRC; 1748 LogFlow(("GuestSession: Could not create thread for GuestSessionTaskInternalOpen task %Rrc\n", vrc)); 1750 1749 } 1751 1750 -
trunk/src/VBox/Main/src-client/GuestSessionImplTasks.cpp
r58521 r58552 97 97 98 98 return hr; 99 }100 101 ComObjPtr<Progress> GuestSessionTask::GetProgressObject() const102 {103 if(mProgress != NULL)104 return mProgress;105 else106 return NULL;107 99 } 108 100
Note:
See TracChangeset
for help on using the changeset viewer.

