VirtualBox

Changeset 81719 in vbox for trunk/include


Ignore:
Timestamp:
Nov 6, 2019 8:22:44 PM (5 years ago)
Author:
vboxsync
Message:

PDMDevHlp: Adding PDMR3ThreadDestroy, removing unused pfnSTAMRegisterF method. bugref:9218

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vmm/pdmdev.h

    r81706 r81719  
    22782278
    22792279/** Current PDMDEVHLPR3 version number. */
    2280 #define PDM_DEVHLPR3_VERSION                    PDM_VERSION_MAKE_PP(0xffe7, 31, 0)
     2280#define PDM_DEVHLPR3_VERSION                    PDM_VERSION_MAKE_PP(0xffe7, 32, 0)
    22812281
    22822282/**
     
    34833483    /**
    34843484     * Same as pfnSTAMRegister except that the name is specified in a
    3485      * RTStrPrintf like fashion.
    3486      *
    3487      * @returns VBox status.
    3488      * @param   pDevIns             Device instance of the DMA.
    3489      * @param   pvSample            Pointer to the sample.
    3490      * @param   enmType             Sample type. This indicates what pvSample is
    3491      *                              pointing at.
    3492      * @param   enmVisibility       Visibility type specifying whether unused
    3493      *                              statistics should be visible or not.
    3494      * @param   enmUnit             Sample unit.
    3495      * @param   pszDesc             Sample description.
    3496      * @param   pszName             Sample name format string, unix path style.  If
    3497      *                              this does not start with a '/', the default
    3498      *                              prefix will be prepended, otherwise it will be
    3499      *                              used as-is.
    3500      * @param   ...                 Arguments to the format string.
    3501      */
    3502     DECLR3CALLBACKMEMBER(void, pfnSTAMRegisterF,(PPDMDEVINS pDevIns, void *pvSample, STAMTYPE enmType,
    3503                                                  STAMVISIBILITY enmVisibility, STAMUNIT enmUnit, const char *pszDesc,
    3504                                                  const char *pszName, ...) RT_IPRT_FORMAT_ATTR(7, 8));
    3505 
    3506     /**
    3507      * Same as pfnSTAMRegister except that the name is specified in a
    35083485     * RTStrPrintfV like fashion.
    35093486     *
     
    39733950    DECLR3CALLBACKMEMBER(int, pfnThreadCreate,(PPDMDEVINS pDevIns, PPPDMTHREAD ppThread, void *pvUser, PFNPDMTHREADDEV pfnThread,
    39743951                                               PFNPDMTHREADWAKEUPDEV pfnWakeup, size_t cbStack, RTTHREADTYPE enmType, const char *pszName));
     3952
     3953    /**
     3954     * Destroys a PDM thread.
     3955     *
     3956     * @returns VBox status code.
     3957     *          This reflects the success off destroying the thread and not the exit code
     3958     *          of the thread as this is stored in *pRcThread.
     3959     * @param   pDevIns             The device instance.
     3960     * @param   pThread             The thread to destroy.
     3961     * @param   pRcThread           Where to store the thread exit code. Optional.
     3962     * @thread  The emulation thread (EMT).
     3963     */
     3964    DECLR3CALLBACKMEMBER(int, pfnThreadDestroy,(PPDMDEVINS pDevIns, PPDMTHREAD pThread, int *pRcThread));
    39753965
    39763966    /**
     
    68696859
    68706860/**
    6871  * @copydoc PDMDEVHLPR3::pfnSTAMRegisterF
     6861 * Same as pfnSTAMRegister except that the name is specified in a
     6862 * RTStrPrintf like fashion.
     6863 *
     6864 * @returns VBox status.
     6865 * @param   pDevIns             Device instance of the DMA.
     6866 * @param   pvSample            Pointer to the sample.
     6867 * @param   enmType             Sample type. This indicates what pvSample is
     6868 *                              pointing at.
     6869 * @param   enmVisibility       Visibility type specifying whether unused
     6870 *                              statistics should be visible or not.
     6871 * @param   enmUnit             Sample unit.
     6872 * @param   pszDesc             Sample description.
     6873 * @param   pszName             Sample name format string, unix path style.  If
     6874 *                              this does not start with a '/', the default
     6875 *                              prefix will be prepended, otherwise it will be
     6876 *                              used as-is.
     6877 * @param   ...                 Arguments to the format string.
    68726878 */
    68736879DECLINLINE(void) RT_IPRT_FORMAT_ATTR(7, 8) PDMDevHlpSTAMRegisterF(PPDMDEVINS pDevIns, void *pvSample, STAMTYPE enmType,
     
    77357741
    77367742/**
     7743 * @copydoc PDMDEVHLPR3::pfnThreadDestroy
     7744 */
     7745DECLINLINE(int) PDMDevHlpThreadDestroy(PPDMDEVINS pDevIns, PPDMTHREAD pThread, int *pRcThread)
     7746{
     7747    return pDevIns->pHlpR3->pfnThreadDestroy(pDevIns, pThread, pRcThread);
     7748}
     7749
     7750/**
    77377751 * @copydoc PDMDEVHLPR3::pfnSetAsyncNotification
    77387752 */
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