Changeset 38439 in vbox
- Timestamp:
- Aug 12, 2011 3:29:32 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 73484
- Location:
- trunk/src/VBox
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceControlExecThread.cpp
r38437 r38439 385 385 { 386 386 if (fEnabled && !cbRead) 387 AssertMsgFailed(("[PID %u]: Waited (%ums) for pipe buffer %u (%u bytes left) 387 AssertMsgFailed(("[PID %u]: Waited (%ums) for pipe buffer %u (%u bytes left), but nothing read!\n", 388 388 uPID, uTimeout, pPipeBuf->uPipeId, pPipeBuf->cbSize - pPipeBuf->cbOffset)); 389 389 if (pcbRead) -
trunk/src/VBox/Main/include/GuestCtrlImplPrivate.h
r38437 r38439 123 123 int ParseBlock(GuestProcessStreamBlock &streamBlock); 124 124 125 public:126 127 static void FreeBlock(GuestProcessStreamBlock *pStreamBlock);128 129 125 protected: 130 126 -
trunk/src/VBox/Main/include/GuestImpl.h
r38437 r38439 161 161 HRESULT executeStreamQueryFsObjInfo(IN_BSTR aObjName,GuestProcessStreamBlock &streamBlock, PRTFSOBJINFO pObjInfo, RTFSOBJATTRADD enmAddAttribs); 162 162 int executeStreamDrain(ULONG aPID, GuestProcessStream &stream); 163 void executeStreamFree(GuestCtrlStreamObjects &streamObjects);164 void executeStreamFreeBlock(GuestProcessStreamBlock *pBlock);165 163 int executeStreamGetNextBlock(ULONG aPID, GuestProcessStream &stream, GuestProcessStreamBlock &streamBlock); 166 164 HRESULT executeStreamParse(ULONG aPID, GuestCtrlStreamObjects &streamObjects); -
trunk/src/VBox/Main/src-client/GuestCtrlIO.cpp
r38437 r38439 400 400 } 401 401 402 void GuestProcessStream::FreeBlock(GuestProcessStreamBlock *pStreamBlock)403 {404 if (pStreamBlock)405 {406 pStreamBlock->Clear();407 delete pStreamBlock;408 pStreamBlock = NULL;409 }410 }411 -
trunk/src/VBox/Main/src-client/GuestCtrlImpl.cpp
r38437 r38439 1302 1302 1303 1303 /** 1304 * Frees a guest stream objects vector.1305 *1306 * @param streamObjects Vector to free.1307 */1308 void Guest::executeStreamFree(GuestCtrlStreamObjects &streamObjects)1309 {1310 /*for (GuestCtrlStreamObjectsIter it = streamObjects.begin();1311 it != streamObjects.end(); it++)1312 {1313 executeStreamFreeBlock(*it);1314 }*/1315 streamObjects.clear();1316 }1317 1318 /**1319 * Frees a guest stream block. Pure convenience function for1320 * GuestProcessStream::FreeBlock().1321 *1322 * @return IPRT status code.1323 * @param pBlock1324 */1325 void Guest::executeStreamFreeBlock(GuestProcessStreamBlock *pBlock)1326 {1327 GuestProcessStream::FreeBlock(pBlock);1328 }1329 1330 /**1331 1304 * Tries to get the next upcoming value block from a started guest process 1332 1305 * by first draining its output and then processing the received guest stream. -
trunk/src/VBox/Main/src-client/GuestCtrlImplDir.cpp
r38437 r38439 505 505 } 506 506 507 executeStreamFree(streamObjs);508 509 507 if (pRC) 510 508 *pRC = rc; -
trunk/src/VBox/Main/src-client/GuestCtrlImplFile.cpp
r38437 r38439 164 164 } 165 165 166 executeStreamFree(streamObjs);167 168 166 if (pRC) 169 167 *pRC = rc;
Note:
See TracChangeset
for help on using the changeset viewer.