VirtualBox

Ignore:
Timestamp:
May 25, 2023 8:35:13 AM (21 months ago)
Author:
vboxsync
Message:

Shared Clipboard: Use a define for clipboard timeouts. bugref:9437

Location:
trunk/src/VBox/HostServices/SharedClipboard
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedClipboard/VBoxSharedClipboardSvc-win.cpp

    r98103 r99966  
    168168    {
    169169        PSHCLEVENTPAYLOAD pPayload;
    170         rc = ShClEventWait(pEvent, 30 * 1000, &pPayload);
     170        rc = ShClEventWait(pEvent, VBOX_SHCL_TIMEOUT_DEFAULT_MS, &pPayload);
    171171        if (RT_SUCCESS(rc))
    172172        {
     
    638638            if (RT_SUCCESS(rc))
    639639            {
    640                 int rc2 = RTThreadUserWait(pCtx->hThread, 30 * 1000 /* Timeout in ms */);
     640                int rc2 = RTThreadUserWait(pCtx->hThread, RT_MS_30SEC /* Timeout in ms */);
    641641                AssertRC(rc2);
    642642            }
     
    682682
    683683            /* 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);
    685685            if (RT_FAILURE(rc))
    686686                LogRel(("Shared Clipboard: Waiting for window thread termination failed with rc=%Rrc\n", rc));
  • trunk/src/VBox/HostServices/SharedClipboard/VBoxSharedClipboardSvc-x11.cpp

    r99953 r99966  
    288288            {
    289289                PSHCLEVENTPAYLOAD pPayload;
    290                 rc = ShClEventWait(pEvent, 30 * 1000, &pPayload);
     290                rc = ShClEventWait(pEvent, SHCL_TIMEOUT_DEFAULT_MS, &pPayload);
    291291                if (RT_SUCCESS(rc))
    292292                {
     
    469469
    470470            PSHCLEVENTPAYLOAD pPayload;
    471             rc = ShClEventWait(pEvent, 30 * 1000, &pPayload);
     471            rc = ShClEventWait(pEvent, SHCL_TIMEOUT_DEFAULT_MS, &pPayload);
    472472            if (RT_SUCCESS(rc))
    473473            {
     
    547547                /* X supplies the data asynchronously, so we need to wait for data to arrive first. */
    548548                PSHCLEVENTPAYLOAD pPayload;
    549                 rc = ShClEventWait(pEvent, 30 * 1000, &pPayload);
     549                rc = ShClEventWait(pEvent, SHCL_TIMEOUT_DEFAULT_MS, &pPayload);
    550550                if (RT_SUCCESS(rc))
    551551                {
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette