Changeset 28132 in vbox for trunk/src/VBox/HostServices
- Timestamp:
- Apr 9, 2010 10:02:00 AM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 59855
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/GuestControl/service.cpp
r28087 r28132 453 453 rc = execBufferAssign(&curCmd.parmBuf, cParms, paParms); 454 454 if (RT_SUCCESS(rc)) 455 { 456 execBufferFree(&curCmd.parmBuf); 455 457 mHostCmds.pop_front(); 458 } 456 459 } 457 460 } … … 487 490 int rc = VINF_SUCCESS; 488 491 489 HostCmd newCmd;490 execBufferAllocate(&newCmd.parmBuf, cParms, paParms);491 mHostCmds.push_back(newCmd);492 493 /* Limit list size by deleting oldest element. */494 if (mHostCmds.size() > 256) /** @todo Use a define! */495 mHostCmds.pop_front();496 497 492 /* Some lazy guests to wake up? */ 498 493 if (!mGuestWaiters.empty()) … … 501 496 rc = hostNotifyGuest(&curCall, eFunction, cParms, paParms); 502 497 mGuestWaiters.pop_front(); 498 } 499 else /* No guests waiting, buffer it */ 500 { 501 HostCmd newCmd; 502 rc = execBufferAllocate(&newCmd.parmBuf, cParms, paParms); 503 if (RT_SUCCESS(rc)) 504 { 505 mHostCmds.push_back(newCmd); 506 507 /* Limit list size by deleting oldest element. */ 508 if (mHostCmds.size() > 256) /** @todo Use a define! */ 509 mHostCmds.pop_front(); 510 } 503 511 } 504 512 return rc;
Note:
See TracChangeset
for help on using the changeset viewer.