Changeset 45416 in vbox
- Timestamp:
- Apr 8, 2013 9:52:26 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/GuestControl/service.cpp
r45415 r45416 474 474 { 475 475 ClientState(void) 476 : m ID(0),477 m SvcHelpers(NULL),476 : mSvcHelpers(NULL), 477 mID(0), 478 478 mFlags(0), mContextFilter(0), 479 479 mHostCmdRc(VINF_SUCCESS), mHostCmdTries(0), … … 482 482 483 483 ClientState(PVBOXHGCMSVCHELPERS pSvcHelpers, uint32_t uClientID) 484 : m ID(uClientID),485 m SvcHelpers(pSvcHelpers),484 : mSvcHelpers(pSvcHelpers), 485 mID(uClientID), 486 486 mFlags(0), mContextFilter(0), 487 487 mHostCmdRc(VINF_SUCCESS), mHostCmdTries(0), … … 501 501 if (curCmd != mHostCmdList.end()) 502 502 Dequeue(curCmd); 503 }504 505 void Dequeue(HostCommand *pHostCmd)506 {507 AssertPtrReturnVoid(pHostCmd);508 509 HostCmdListIter curItem = mHostCmdList.begin();510 while (curItem != mHostCmdList.end())511 {512 if ((*curItem) == pHostCmd)513 {514 Dequeue(curItem);515 break;516 }517 518 curItem++;519 }520 503 } 521 504 … … 679 662 680 663 if (fRemove) 681 Dequeue(pHostCmd); 664 { 665 /** @todo Fix this (slow) lookup. Too late today. */ 666 HostCmdListIter curItem = mHostCmdList.begin(); 667 while (curItem != mHostCmdList.end()) 668 { 669 if ((*curItem) == pHostCmd) 670 { 671 Dequeue(curItem); 672 break; 673 } 674 675 curItem++; 676 } 677 } 682 678 683 679 LogFlowFunc(("[Client %RU32] Returned with rc=%Rrc\n", mID, rc));
Note:
See TracChangeset
for help on using the changeset viewer.

