Changeset 99966 in vbox
- Timestamp:
- May 25, 2023 8:35:13 AM (23 months ago)
- svn:sync-xref-src-repo-rev:
- 157626
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/GuestHost/SharedClipboard-transfers.h
r99955 r99966 80 80 /** Defines the default maximum object handles a Shared Clipboard transfer can have. */ 81 81 #define SHCL_TRANSFER_DEFAULT_MAX_OBJ_HANDLES _4K 82 /** Defines the default timeout (in ms) to use for clipboard operations. */ 83 #define SHCL_TIMEOUT_DEFAULT_MS RT_MS_30SEC 82 84 83 85 /** … … 941 943 /** Absolute path to root entries. */ 942 944 char *pszPathRootAbs; 943 /** Timeout (in ms) for waiting of events. Default is 30s.*/945 /** Timeout (in ms) for waiting of events. */ 944 946 RTMSINTERVAL uTimeoutMs; 945 947 /** Maximum data chunk size (in bytes) to transfer. Default is 64K. */ -
trunk/src/VBox/GuestHost/SharedClipboard/ClipboardDataObjectImpl-win.cpp
r98103 r99966 635 635 /* Don't block for too long here, as this also will screw other apps running on the OS. */ 636 636 LogFunc(("Waiting for listing to arrive ...\n")); 637 rc = RTSemEventWait(m_EventListComplete, 30 * 1000 /* 30s timeout */);637 rc = RTSemEventWait(m_EventListComplete, VBOX_SHCL_TIMEOUT_DEFAULT_MS); 638 638 if (RT_SUCCESS(rc)) 639 639 { -
trunk/src/VBox/GuestHost/SharedClipboard/clipboard-transfers.cpp
r99955 r99966 1060 1060 pTransfer->pszPathRootAbs = NULL; 1061 1061 1062 #ifdef DEBUG_andy 1063 pTransfer->uTimeoutMs = RT_MS_5SEC; 1064 #else 1065 pTransfer->uTimeoutMs = RT_MS_30SEC; 1066 #endif 1062 pTransfer->uTimeoutMs = SHCL_TIMEOUT_DEFAULT_MS; 1067 1063 pTransfer->cbMaxChunkSize = cbMaxChunkSize; 1068 1064 pTransfer->cMaxListHandles = cMaxListHandles; … … 1126 1122 LogFlowFuncEnter(); 1127 1123 1128 int rc = shClTransferThreadDestroy(pTransfer, 30 * 1000/* Timeout in ms */);1124 int rc = shClTransferThreadDestroy(pTransfer, RT_MS_30SEC /* Timeout in ms */); 1129 1125 if (RT_FAILURE(rc)) 1130 1126 return rc; … … 1942 1938 if (RT_SUCCESS(rc)) 1943 1939 { 1944 int rc2 = RTThreadUserWait(pTransfer->Thread.hThread, 30 * 1000/* Timeout in ms */);1940 int rc2 = RTThreadUserWait(pTransfer->Thread.hThread, RT_MS_30SEC /* Timeout in ms */); 1945 1941 AssertRC(rc2); 1946 1942 -
trunk/src/VBox/HostServices/SharedClipboard/VBoxSharedClipboardSvc-win.cpp
r98103 r99966 168 168 { 169 169 PSHCLEVENTPAYLOAD pPayload; 170 rc = ShClEventWait(pEvent, 30 * 1000, &pPayload);170 rc = ShClEventWait(pEvent, VBOX_SHCL_TIMEOUT_DEFAULT_MS, &pPayload); 171 171 if (RT_SUCCESS(rc)) 172 172 { … … 638 638 if (RT_SUCCESS(rc)) 639 639 { 640 int rc2 = RTThreadUserWait(pCtx->hThread, 30 * 1000/* Timeout in ms */);640 int rc2 = RTThreadUserWait(pCtx->hThread, RT_MS_30SEC /* Timeout in ms */); 641 641 AssertRC(rc2); 642 642 } … … 682 682 683 683 /* Wait for the window thread to terminate. */ 684 rc = RTThreadWait(pCtx->hThread, 30 * 1000/* Timeout in ms */, NULL);684 rc = RTThreadWait(pCtx->hThread, RT_MS_30SEC /* Timeout in ms */, NULL); 685 685 if (RT_FAILURE(rc)) 686 686 LogRel(("Shared Clipboard: Waiting for window thread termination failed with rc=%Rrc\n", rc)); -
trunk/src/VBox/HostServices/SharedClipboard/VBoxSharedClipboardSvc-x11.cpp
r99953 r99966 288 288 { 289 289 PSHCLEVENTPAYLOAD pPayload; 290 rc = ShClEventWait(pEvent, 30 * 1000, &pPayload);290 rc = ShClEventWait(pEvent, SHCL_TIMEOUT_DEFAULT_MS, &pPayload); 291 291 if (RT_SUCCESS(rc)) 292 292 { … … 469 469 470 470 PSHCLEVENTPAYLOAD pPayload; 471 rc = ShClEventWait(pEvent, 30 * 1000, &pPayload);471 rc = ShClEventWait(pEvent, SHCL_TIMEOUT_DEFAULT_MS, &pPayload); 472 472 if (RT_SUCCESS(rc)) 473 473 { … … 547 547 /* X supplies the data asynchronously, so we need to wait for data to arrive first. */ 548 548 PSHCLEVENTPAYLOAD pPayload; 549 rc = ShClEventWait(pEvent, 30 * 1000, &pPayload);549 rc = ShClEventWait(pEvent, SHCL_TIMEOUT_DEFAULT_MS, &pPayload); 550 550 if (RT_SUCCESS(rc)) 551 551 {
Note:
See TracChangeset
for help on using the changeset viewer.