VirtualBox

Changeset 80997 in vbox for trunk/src


Ignore:
Timestamp:
Sep 25, 2019 7:42:22 AM (5 years ago)
Author:
vboxsync
Message:

Shared Clipboard: MacOS build fix.

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

Legend:

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

    r80995 r80997  
    104104        /* call this behind the lock because we don't know if the api is
    105105           thread safe and in any case we're calling several methods. */
    106         VBoxSvcClipboardLock();
     106        ShClSvcLock();
    107107        vboxClipboardChanged(pCtx);
    108108        VBoxSvcClipboardUnlock();
     
    166166    }
    167167
    168     VBoxSvcClipboardLock();
     168    ShClSvcLock();
    169169
    170170    pClient->State.pCtx = &g_ctx;
     
    181181{
    182182    /* Sync the host clipboard content with the client. */
    183     VBoxSvcClipboardLock();
     183    ShClSvcLock();
    184184
    185185    int rc = vboxClipboardChanged(pClient->State.pCtx);
     
    192192int ShClSvcImplDisconnect(PSHCLCLIENT pClient)
    193193{
    194     VBoxSvcClipboardLock();
     194    ShClSvcLock();
    195195
    196196    pClient->State.pCtx->pClient = NULL;
     
    241241    RT_NOREF(pCmdCtx);
    242242
    243     VBoxSvcClipboardLock();
     243    ShClSvcLock();
    244244
    245245    /* Default to no data available. */
     
    267267    RT_NOREF(pCmdCtx);
    268268
    269     VBoxSvcClipboardLock();
     269    ShClSvcLock();
    270270
    271271    writeToPasteboard(pClient->State.pCtx->pasteboard, pData->pvData, pData->cbData, pData->uFormat);
  • trunk/src/VBox/HostServices/SharedClipboard/VBoxSharedClipboardSvc.cpp

    r80996 r80997  
    301301}
    302302
    303 bool VBoxSvcClipboardLock(void)
     303bool ShClSvcLock(void)
    304304{
    305305    return RT_SUCCESS(RTCritSectEnter(&g_CritSect));
    306306}
    307307
    308 void VBoxSvcClipboardUnlock(void)
     308void ShClSvcUnlock(void)
    309309{
    310310    int rc2 = RTCritSectLeave(&g_CritSect);
     
    10631063    int rc = VINF_SUCCESS;
    10641064
    1065     if (VBoxSvcClipboardLock())
     1065    if (ShClSvcLock())
    10661066    {
    10671067        pClient->State.enmSource = enmSource;
     
    10691069        LogFlowFunc(("Source of client %RU32 is now %RU32\n", pClient->State.uClientID, pClient->State.enmSource));
    10701070
    1071         VBoxSvcClipboardUnlock();
     1071        ShClSvcUnlock();
    10721072    }
    10731073
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