Changeset 104003 in vbox for trunk/src/VBox/Main/src-client
- Timestamp:
- Mar 22, 2024 4:13:12 PM (13 months ago)
- svn:sync-xref-src-repo-rev:
- 162390
- Location:
- trunk/src/VBox/Main/src-client
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/GuestDirectoryImpl.cpp
r99295 r104003 367 367 vrc = sendMessage(HOST_MSG_DIR_OPEN, i, paParms); 368 368 if (RT_SUCCESS(vrc)) 369 vrc = i_waitForStatusChange(pEvent, 30 * 1000, NULL /* FileStatus */, pvrcGuest);369 vrc = i_waitForStatusChange(pEvent, GSTCTL_DEFAULT_TIMEOUT_MS, NULL /* FileStatus */, pvrcGuest); 370 370 } 371 371 else … … 835 835 if (RT_SUCCESS(vrc)) 836 836 { 837 vrc = pEvent->Wait( 30 * 1000);837 vrc = pEvent->Wait(GSTCTL_DEFAULT_TIMEOUT_MS); 838 838 if (RT_SUCCESS(vrc)) 839 839 { … … 870 870 int GuestDirectory::i_closeViaToolbox(int *pvrcGuest) 871 871 { 872 return mData.mProcessTool.terminate( 30 * 1000 /* 30s timeout */, pvrcGuest);872 return mData.mProcessTool.terminate(GSTCTL_DEFAULT_TIMEOUT_MS, pvrcGuest); 873 873 } 874 874 #endif /* VBOX_WITH_GSTCTL_TOOLBOX_SUPPORT */ … … 914 914 if (RT_SUCCESS(vrc)) 915 915 { 916 vrc = pEvent->Wait( 30 * 1000);916 vrc = pEvent->Wait(GSTCTL_DEFAULT_TIMEOUT_MS); 917 917 if (RT_SUCCESS(vrc)) 918 918 { … … 1046 1046 if (RT_SUCCESS(vrc)) 1047 1047 { 1048 vrc = pEvent->Wait( 30 * 1000);1048 vrc = pEvent->Wait(GSTCTL_DEFAULT_TIMEOUT_MS); 1049 1049 if (RT_SUCCESS(vrc)) 1050 1050 { … … 1567 1567 1568 1568 int vrcGuest = VERR_IPE_UNINITIALIZED_STATUS; 1569 int vrc = i_rewind( 30 * 1000 /* Timeout in ms */, &vrcGuest);1569 int vrc = i_rewind(GSTCTL_DEFAULT_TIMEOUT_MS, &vrcGuest); 1570 1570 if (RT_SUCCESS(vrc)) 1571 1571 return S_OK; -
trunk/src/VBox/Main/src-client/GuestFileImpl.cpp
r104001 r104003 421 421 vrc = sendMessage(HOST_MSG_FILE_CLOSE, i, paParms); 422 422 if (RT_SUCCESS(vrc)) 423 vrc = i_waitForStatusChange(pEvent, 30 * 1000 /* Timeout in ms */, 424 NULL /* FileStatus */, prcGuest); 423 vrc = i_waitForStatusChange(pEvent, GSTCTL_DEFAULT_TIMEOUT_MS, NULL /* FileStatus */, prcGuest); 425 424 unregisterWaitEvent(pEvent); 426 425 … … 1758 1757 1759 1758 uint64_t uNewOffset; 1760 int vrc = i_seekAt(aOffset, eSeekType, 1761 30 * 1000 /* 30s timeout */, &uNewOffset); 1759 int vrc = i_seekAt(aOffset, eSeekType, GSTCTL_DEFAULT_TIMEOUT_MS, &uNewOffset); 1762 1760 if (RT_SUCCESS(vrc)) 1763 1761 *aNewOffset = RT_MIN(uNewOffset, (uint64_t)INT64_MAX); -
trunk/src/VBox/Main/src-client/GuestProcessImpl.cpp
r99782 r104003 1384 1384 return VERR_COM_UNEXPECTED; 1385 1385 1386 int vrc = pProcess->i_startProcess( 30 * 1000 /* 30s timeout */, NULL /* pvrcGuest, ignored */);1386 int vrc = pProcess->i_startProcess(GSTCTL_DEFAULT_TIMEOUT_MS, NULL /* pvrcGuest, ignored */); 1387 1387 /* Nothing to do here anymore. */ 1388 1388 … … 2090 2090 2091 2091 int vrcGuest = VERR_IPE_UNINITIALIZED_STATUS; 2092 int vrc = i_terminateProcess( 30 * 1000 /* Timeout in ms */, &vrcGuest);2092 int vrc = i_terminateProcess(GSTCTL_DEFAULT_TIMEOUT_MS, &vrcGuest); 2093 2093 2094 2094 switch (vrc) … … 2312 2312 vrc = fAsync 2313 2313 ? pProcess->i_startProcessAsync() 2314 : pProcess->i_startProcess( 30 * 1000 /* 30s timeout */, &vrcGuest);2314 : pProcess->i_startProcess(GSTCTL_DEFAULT_TIMEOUT_MS, &vrcGuest); 2315 2315 2316 2316 if ( RT_SUCCESS(vrc) … … 2337 2337 /* Make sure the process is terminated and unregistered from the guest session. */ 2338 2338 int vrcGuestIgnored; 2339 terminate( 30 * 1000 /* 30s timeout */, &vrcGuestIgnored);2339 terminate(GSTCTL_DEFAULT_TIMEOUT_MS, &vrcGuestIgnored); 2340 2340 2341 2341 /* Unregister the process from the process (and the session's object) list. */ -
trunk/src/VBox/Main/src-client/GuestSessionImpl.cpp
r104001 r104003 1079 1079 if (RT_SUCCESS(vrc)) 1080 1080 { 1081 vrc = pEvent->Wait( 30 * 1000);1081 vrc = pEvent->Wait(GSTCTL_DEFAULT_TIMEOUT_MS); 1082 1082 if (RT_SUCCESS(vrc)) 1083 1083 { … … 1244 1244 if (RT_SUCCESS(vrc)) 1245 1245 { 1246 vrc = pEvent->Wait( 30 * 1000);1246 vrc = pEvent->Wait(GSTCTL_DEFAULT_TIMEOUT_MS); 1247 1247 if (pEvent->HasGuestError() && pvrcGuest) 1248 1248 *pvrcGuest = pEvent->GuestResult(); … … 1400 1400 if (RT_SUCCESS(vrc)) 1401 1401 { 1402 vrc = pEvent->Wait( 30 * 1000);1402 vrc = pEvent->Wait(GSTCTL_DEFAULT_TIMEOUT_MS); 1403 1403 if (RT_SUCCESS(vrc)) 1404 1404 { … … 1859 1859 if (RT_SUCCESS(vrc)) 1860 1860 { 1861 vrc = pEvent->Wait( 30 * 1000);1861 vrc = pEvent->Wait(GSTCTL_DEFAULT_TIMEOUT_MS); 1862 1862 if (RT_SUCCESS(vrc)) 1863 1863 { … … 1990 1990 { 1991 1991 int vrcGuest = VERR_IPE_UNINITIALIZED_STATUS; 1992 vrc = pFile->i_open( 30 * 1000 /* 30s timeout */, &vrcGuest);1992 vrc = pFile->i_open(GSTCTL_DEFAULT_TIMEOUT_MS, &vrcGuest); 1993 1993 if ( vrc == VERR_GSTCTL_GUEST_ERROR 1994 1994 && pvrcGuest) … … 2141 2141 if (RT_SUCCESS(vrc)) 2142 2142 { 2143 vrc = pEvent->Wait( 30 * 1000);2143 vrc = pEvent->Wait(GSTCTL_DEFAULT_TIMEOUT_MS); 2144 2144 if (RT_SUCCESS(vrc)) 2145 2145 { … … 2218 2218 if (RT_SUCCESS(vrc)) 2219 2219 { 2220 vrc = pEvent->Wait( 30 * 1000);2220 vrc = pEvent->Wait(GSTCTL_DEFAULT_TIMEOUT_MS); 2221 2221 if (RT_SUCCESS(vrc)) 2222 2222 { … … 2796 2796 { 2797 2797 vrc = i_waitForStatusChange(pEvent, GuestSessionWaitForFlag_Start, 2798 30 * 1000 /* 30s timeout */, 2799 NULL /* Session status */, pvrcGuest); 2798 GSTCTL_DEFAULT_TIMEOUT_MS, NULL /* Session status */, pvrcGuest); 2800 2799 } 2801 2800 else … … 3091 3090 if (RT_SUCCESS(vrc)) 3092 3091 { 3093 vrc = pEvent->Wait( 30 * 1000);3092 vrc = pEvent->Wait(GSTCTL_DEFAULT_TIMEOUT_MS); 3094 3093 if (pEvent->HasGuestError() && pvrcGuest) 3095 3094 *pvrcGuest = pEvent->GuestResult(); … … 3134 3133 if (RT_SUCCESS(vrc)) 3135 3134 { 3136 vrc = pEvent->Wait( 30 * 1000);3135 vrc = pEvent->Wait(GSTCTL_DEFAULT_TIMEOUT_MS); 3137 3136 if (RT_SUCCESS(vrc)) 3138 3137 { … … 3187 3186 if (RT_SUCCESS(vrc)) 3188 3187 { 3189 vrc = pEvent->Wait( 30 * 1000);3188 vrc = pEvent->Wait(GSTCTL_DEFAULT_TIMEOUT_MS); 3190 3189 if (RT_SUCCESS(vrc)) 3191 3190 { … … 3237 3236 if (RT_SUCCESS(vrc)) 3238 3237 { 3239 vrc = pEvent->Wait( 30 * 1000);3238 vrc = pEvent->Wait(GSTCTL_DEFAULT_TIMEOUT_MS); 3240 3239 if (RT_SUCCESS(vrc)) 3241 3240 { … … 3621 3620 if (RT_SUCCESS(vrc)) 3622 3621 { 3623 vrc = pEvent->Wait( 30 * 1000);3622 vrc = pEvent->Wait(GSTCTL_DEFAULT_TIMEOUT_MS); 3624 3623 if (RT_FAILURE(vrc)) 3625 3624 { -
trunk/src/VBox/Main/src-client/GuestSessionImplTasks.cpp
r104001 r104003 403 403 uint64_t cbToRead = cbSize; 404 404 405 uint32_t uTimeoutMs = 30 * 1000; /* 30s timeout. */406 407 405 int vrc = VINF_SUCCESS; 408 406 … … 410 408 { 411 409 uint64_t offActual; 412 vrc = srcFile->i_seekAt(offCopy, GUEST_FILE_SEEKTYPE_BEGIN, uTimeoutMs, &offActual);410 vrc = srcFile->i_seekAt(offCopy, GUEST_FILE_SEEKTYPE_BEGIN, GSTCTL_DEFAULT_TIMEOUT_MS, &offActual); 413 411 if (RT_FAILURE(vrc)) 414 412 { … … 425 423 uint32_t cbRead; 426 424 const uint32_t cbChunk = RT_MIN(cbToRead, sizeof(byBuf)); 427 vrc = srcFile->i_readData(cbChunk, uTimeoutMs, byBuf, sizeof(byBuf), &cbRead);425 vrc = srcFile->i_readData(cbChunk, GSTCTL_DEFAULT_TIMEOUT_MS, byBuf, sizeof(byBuf), &cbRead); 428 426 if (RT_FAILURE(vrc)) 429 427 { … … 736 734 uint64_t cbToRead = cbSize; 737 735 738 uint32_t uTimeoutMs = 30 * 1000; /* 30s timeout. */739 740 736 int vrc = VINF_SUCCESS; 741 737 … … 767 763 } 768 764 769 vrc = fileDst->i_writeData( uTimeoutMs, byBuf, (uint32_t)cbRead, NULL /* No partial writes */);765 vrc = fileDst->i_writeData(GSTCTL_DEFAULT_TIMEOUT_MS, byBuf, (uint32_t)cbRead, NULL /* No partial writes */); 770 766 if (RT_FAILURE(vrc)) 771 767 { … … 2821 2817 && addsRunLevel != AdditionsRunLevelType_Desktop)) 2822 2818 { 2823 if ((RTTimeSystemMilliTS() - tsStart) > 30 * 1000)2819 if ((RTTimeSystemMilliTS() - tsStart) > GSTCTL_DEFAULT_TIMEOUT_MS) 2824 2820 { 2825 2821 vrc = VERR_TIMEOUT;
Note:
See TracChangeset
for help on using the changeset viewer.