VirtualBox

vbox的更動 36437 路徑 trunk/include


忽略:
時間撮記:
2011-3-25 下午03:36:59 (14 年 以前)
作者:
vboxsync
訊息:

VMM,Main: Added VMM thread init and term notifications so that Main can make sure COM is uninitialized. (Maybe we should just say IPRT cleans up COM?)

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/include/VBox/vmm/vmm.h

    r35855 r36437  
    153153     * @returns VBox status code.
    154154     * @param   pThis       Pointer to the callback method table.
    155      * @param   pVM         The VM handle.
     155     * @param   pUVM        The user mode VM handle.
    156156     *
    157157     * @remarks This member shall be set to NULL if the operation is not
    158158     *          supported.
    159159     */
    160     DECLR3CALLBACKMEMBER(int, pfnSaveState,(PCVMM2USERMETHODS pThis, PVM pVM));
     160    DECLR3CALLBACKMEMBER(int, pfnSaveState,(PCVMM2USERMETHODS pThis, PUVM pUVM));
    161161    /** @todo Move pfnVMAtError and pfnCFGMConstructor here? */
     162
     163    /**
     164     * EMT initialization notification callback.
     165     *
     166     * This is intended for doing per-thread initialization for EMTs (like COM
     167     * init).
     168     *
     169     * @param   pThis       Pointer to the callback method table.
     170     * @param   pUVM        The user mode VM handle.
     171     * @param   pUVCpu      The user mode virtual CPU handle.
     172     *
     173     * @remarks This is optional and shall be set to NULL if not wanted.
     174     */
     175    DECLR3CALLBACKMEMBER(void, pfnNotifyEmtInit,(PCVMM2USERMETHODS pThis, PUVM pUVM, PUVMCPU pUVCpu));
     176
     177    /**
     178     * EMT termination notification callback.
     179     *
     180     * This is intended for doing per-thread cleanups for EMTs (like COM).
     181     *
     182     * @param   pThis       Pointer to the callback method table.
     183     * @param   pUVM        The user mode VM handle.
     184     * @param   pUVCpu      The user mode virtual CPU handle.
     185     *
     186     * @remarks This is optional and shall be set to NULL if not wanted.
     187     */
     188    DECLR3CALLBACKMEMBER(void, pfnNotifyEmtTerm,(PCVMM2USERMETHODS pThis, PUVM pUVM, PUVMCPU pUVCpu));
     189
     190    /**
     191     * PDM thread initialization notification callback.
     192     *
     193     * This is intended for doing per-thread initialization (like COM init).
     194     *
     195     * @param   pThis       Pointer to the callback method table.
     196     * @param   pUVM        The user mode VM handle.
     197     *
     198     * @remarks This is optional and shall be set to NULL if not wanted.
     199     */
     200    DECLR3CALLBACKMEMBER(void, pfnNotifyPdmtInit,(PCVMM2USERMETHODS pThis, PUVM pUVM));
     201
     202    /**
     203     * EMT termination notification callback.
     204     *
     205     * This is intended for doing per-thread cleanups for EMTs (like COM).
     206     *
     207     * @param   pThis       Pointer to the callback method table.
     208     * @param   pUVM        The user mode VM handle.
     209     *
     210     * @remarks This is optional and shall be set to NULL if not wanted.
     211     */
     212    DECLR3CALLBACKMEMBER(void, pfnNotifyPdmtTerm,(PCVMM2USERMETHODS pThis, PUVM pUVM));
    162213
    163214    /** Magic value (VMM2USERMETHODS_MAGIC) marking the end of the structure. */
     
    168219#define VMM2USERMETHODS_MAGIC         UINT32_C(0x18830703)
    169220/** The VMM2USERMETHODS structure version. */
    170 #define VMM2USERMETHODS_VERSION       UINT32_C(0x00010000)
     221#define VMM2USERMETHODS_VERSION       UINT32_C(0x00020000)
    171222
    172223
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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