Changeset 22914 in vbox
- Timestamp:
- Sep 10, 2009 1:04:42 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageGuestProp.cpp
r22913 r22914 459 459 } 460 460 a->virtualBox->RegisterCallback(callback); 461 RTTIMESPEC tmStarted, tmNow; 462 RTTimeNow (&tmStarted); 461 uint64_t u64Started = RTTimeMilliTS(); 463 462 do { 464 463 int vrc = com::EventQueue::getMainEventQueue()->processEventQueue(300); … … 468 467 return 1; 469 468 } 470 if (cMsTimeout != RT_INDEFINITE_WAIT) 471 { 472 RTTimeNow(&tmNow); 473 RTTimeSpecSub(&tmNow, &tmStarted); 474 if (RTTimeSpecGetMilli(&tmNow) >= cMsTimeout) 469 if (cMsTimeout != RT_INDEFINITE_WAIT && 470 RTTimeMilliTS() - u64Started >= cMsTimeout) 475 471 break; 476 }477 472 } while (!cbImpl->Signalled()); 478 473
Note:
See TracChangeset
for help on using the changeset viewer.