Changeset 78158 in vbox for trunk/src/VBox
- Timestamp:
- Apr 17, 2019 1:28:04 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedClipboard/darwin.cpp
r76553 r78158 101 101 /* call this behind the lock because we don't know if the api is 102 102 thread safe and in any case we're calling several methods. */ 103 vboxSvcClipboardLock();103 VBoxSvcClipboardLock(); 104 104 vboxClipboardChanged (pCtx); 105 vboxSvcClipboardUnlock();105 VBoxSvcClipboardUnlock(); 106 106 107 107 /* Sleep for 200 msecs before next poll */ … … 176 176 } 177 177 178 vboxSvcClipboardLock();178 VBoxSvcClipboardLock(); 179 179 180 180 pClient->pCtx = &g_ctx; … … 184 184 int rc = vboxClipboardSync (pClient); 185 185 186 vboxSvcClipboardUnlock();186 VBoxSvcClipboardUnlock(); 187 187 return rc; 188 188 } … … 195 195 { 196 196 /* Sync the host clipboard content with the client. */ 197 vboxSvcClipboardLock();197 VBoxSvcClipboardLock(); 198 198 int rc = vboxClipboardChanged (pClient->pCtx); 199 vboxSvcClipboardUnlock();199 VBoxSvcClipboardUnlock(); 200 200 201 201 return rc; … … 209 209 Log (("vboxClipboardDisconnect\n")); 210 210 211 vboxSvcClipboardLock();211 VBoxSvcClipboardLock(); 212 212 pClient->pCtx->pClient = NULL; 213 vboxSvcClipboardUnlock();213 VBoxSvcClipboardUnlock(); 214 214 } 215 215 … … 246 246 void *pv, uint32_t cb, uint32_t * pcbActual) 247 247 { 248 vboxSvcClipboardLock();248 VBoxSvcClipboardLock(); 249 249 250 250 /* Default to no data available. */ … … 252 252 int rc = readFromPasteboard (pClient->pCtx->pasteboard, u32Format, pv, cb, pcbActual); 253 253 254 vboxSvcClipboardUnlock();254 VBoxSvcClipboardUnlock(); 255 255 return rc; 256 256 } … … 267 267 uint32_t cb, uint32_t u32Format) 268 268 { 269 vboxSvcClipboardLock();269 VBoxSvcClipboardLock(); 270 270 271 271 writeToPasteboard (pClient->pCtx->pasteboard, pv, cb, u32Format); 272 272 273 vboxSvcClipboardUnlock();274 } 273 VBoxSvcClipboardUnlock(); 274 }
Note:
See TracChangeset
for help on using the changeset viewer.