VirtualBox

Changeset 100538 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Jul 12, 2023 8:53:20 AM (19 months ago)
Author:
vboxsync
Message:

Shared Clipboard: Use a dedicated worker thread wrapper for transfer threads, so that we have more control for the thread creation / destruction. bugref:9437

Location:
trunk/include/VBox/GuestHost
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/GuestHost/SharedClipboard-transfers.h

    r100526 r100538  
    875875/** Pointer to a Shared Clipboard transfer callback table. */
    876876typedef SHCLTRANSFERCALLBACKS *PSHCLTRANSFERCALLBACKS;
     877
     878/** Function pointer for a transfer thread function. */
     879typedef DECLCALLBACKPTR(int, PFNSHCLTRANSFERTHREAD,(PSHCLTRANSFER pTransfer, void *pvUser));
    877880
    878881/**
     
    11201123void ShClTransferReset(PSHCLTRANSFER pTransfer);
    11211124
    1122 int ShClTransferRun(PSHCLTRANSFER pTransfer, PFNRTTHREAD pfnThreadFunc, void *pvUser);
     1125int ShClTransferRun(PSHCLTRANSFER pTransfer, PFNSHCLTRANSFERTHREAD pfnThreadFunc, void *pvUser);
    11231126int ShClTransferStart(PSHCLTRANSFER pTransfer);
    11241127
  • trunk/include/VBox/GuestHost/SharedClipboard-win.h

    r100523 r100538  
    288288public:
    289289
    290     static DECLCALLBACK(int) readThread(RTTHREAD ThreadSelf, void *pvUser);
     290    static DECLCALLBACK(int) readThread(PSHCLTRANSFER pTransfer, void *pvUser);
    291291
    292292    static void logFormat(CLIPFORMAT fmt);
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