VirtualBox

Changeset 21363 in vbox for trunk/include


Ignore:
Timestamp:
Jul 7, 2009 5:10:52 PM (15 years ago)
Author:
vboxsync
Message:

PDMQueue&users-thereof: Named the queues and added statistics.

Location:
trunk/include/VBox
Files:
3 edited

Legend:

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

    r21217 r21363  
    22992299     *                              If 0 then the emulation thread will be notified whenever an item arrives.
    23002300     * @param   pfnCallback         The consumer function.
    2301      * @param   fGCEnabled          Set if the queue should work in GC too.
     2301     * @param   fRZEnabled          Set if the queue should work in RC and R0.
     2302     * @param   pszName             The queue base name. The instance number will be
     2303     *                              appended automatically.
    23022304     * @param   ppQueue             Where to store the queue handle on success.
    23032305     * @thread  The emulation thread.
    23042306     */
    23052307    DECLR3CALLBACKMEMBER(int, pfnPDMQueueCreate,(PPDMDEVINS pDevIns, RTUINT cbItem, RTUINT cItems, uint32_t cMilliesInterval,
    2306                                                  PFNPDMQUEUEDEV pfnCallback, bool fGCEnabled, PPDMQUEUE *ppQueue));
     2308                                                 PFNPDMQUEUEDEV pfnCallback, bool fRZEnabled, const char *pszName, PPDMQUEUE *ppQueue));
    23072309
    23082310    /**
     
    28812883
    28822884/** Current PDMDEVHLP version number. */
    2883 #define PDM_DEVHLP_VERSION  0xf20a0000
     2885#define PDM_DEVHLP_VERSION  0xf20b0000
    28842886
    28852887
     
    35823584 */
    35833585DECLINLINE(int) PDMDevHlpPDMQueueCreate(PPDMDEVINS pDevIns, RTUINT cbItem, RTUINT cItems, uint32_t cMilliesInterval,
    3584                                         PFNPDMQUEUEDEV pfnCallback, bool fGCEnabled, PPDMQUEUE *ppQueue)
    3585 {
    3586     return pDevIns->pDevHlpR3->pfnPDMQueueCreate(pDevIns, cbItem, cItems, cMilliesInterval, pfnCallback, fGCEnabled, ppQueue);
     3586                                        PFNPDMQUEUEDEV pfnCallback, bool fGCEnabled, const char *pszName, PPDMQUEUE *ppQueue)
     3587{
     3588    return pDevIns->pDevHlpR3->pfnPDMQueueCreate(pDevIns, cbItem, cItems, cMilliesInterval, pfnCallback, fGCEnabled, pszName, ppQueue);
    35873589}
    35883590
  • trunk/include/VBox/pdmdrv.h

    r21217 r21363  
    482482     *                              If 0 then the emulation thread will be notified whenever an item arrives.
    483483     * @param   pfnCallback         The consumer function.
     484     * @param   pszName             The queue base name. The instance number will be
     485     *                              appended automatically.
    484486     * @param   ppQueue             Where to store the queue handle on success.
    485487     * @thread  The emulation thread.
    486488     */
    487     DECLR3CALLBACKMEMBER(int, pfnPDMQueueCreate,(PPDMDRVINS pDrvIns, RTUINT cbItem, RTUINT cItems, uint32_t cMilliesInterval, PFNPDMQUEUEDRV pfnCallback, PPDMQUEUE *ppQueue));
    488 
    489     /**
    490      * Register a poller function.
    491      * TEMPORARY HACK FOR NETWORKING! DON'T USE!
    492      *
    493      * @returns VBox status code.
    494      * @param   pDrvIns             Driver instance.
    495      * @param   pfnPoller           The callback function.
    496      */
    497     DECLR3CALLBACKMEMBER(int, pfnPDMPollerRegister,(PPDMDRVINS pDrvIns, PFNPDMDRVPOLLER pfnPoller));
     489    DECLR3CALLBACKMEMBER(int, pfnPDMQueueCreate,(PPDMDRVINS pDrvIns, RTUINT cbItem, RTUINT cItems, uint32_t cMilliesInterval,
     490                                                 PFNPDMQUEUEDRV pfnCallback, const char *pszName, PPDMQUEUE *ppQueue));
    498491
    499492    /**
     
    710703
    711704/** Current DRVHLP version number. */
    712 #define PDM_DRVHLP_VERSION  0x90040000
     705#define PDM_DRVHLP_VERSION  0x90050000
    713706
    714707
     
    826819 */
    827820DECLINLINE(int) PDMDrvHlpPDMQueueCreate(PPDMDRVINS pDrvIns, RTUINT cbItem, RTUINT cItems, uint32_t cMilliesInterval,
    828                                         PFNPDMQUEUEDRV pfnCallback, PPDMQUEUE *ppQueue)
    829 {
    830     return pDrvIns->pDrvHlp->pfnPDMQueueCreate(pDrvIns, cbItem, cItems, cMilliesInterval, pfnCallback, ppQueue);
     821                                        PFNPDMQUEUEDRV pfnCallback, const char *pszName, PPDMQUEUE *ppQueue)
     822{
     823    return pDrvIns->pDrvHlp->pfnPDMQueueCreate(pDrvIns, cbItem, cItems, cMilliesInterval, pfnCallback, pszName, ppQueue);
    831824}
    832825
  • trunk/include/VBox/pdmqueue.h

    r21217 r21363  
    112112
    113113VMMR3DECL(int)  PDMR3QueueCreateDevice(PVM pVM, PPDMDEVINS pDevIns, RTUINT cbItem, RTUINT cItems, uint32_t cMilliesInterval,
    114                                        PFNPDMQUEUEDEV pfnCallback, bool fGCEnabled, PPDMQUEUE *ppQueue);
     114                                       PFNPDMQUEUEDEV pfnCallback, bool fGCEnabled, const char *pszName, PPDMQUEUE *ppQueue);
    115115VMMR3DECL(int)  PDMR3QueueCreateDriver(PVM pVM, PPDMDRVINS pDrvIns, RTUINT cbItem, RTUINT cItems, uint32_t cMilliesInterval,
    116                                        PFNPDMQUEUEDRV pfnCallback, PPDMQUEUE *ppQueue);
     116                                       PFNPDMQUEUEDRV pfnCallback, const char *pszName, PPDMQUEUE *ppQueue);
    117117VMMR3DECL(int)  PDMR3QueueCreateInternal(PVM pVM, RTUINT cbItem, RTUINT cItems, uint32_t cMilliesInterval,
    118                                          PFNPDMQUEUEINT pfnCallback, bool fGCEnabled, PPDMQUEUE *ppQueue);
     118                                         PFNPDMQUEUEINT pfnCallback, bool fGCEnabled, const char *pszName, PPDMQUEUE *ppQueue);
    119119VMMR3DECL(int)  PDMR3QueueCreateExternal(PVM pVM, RTUINT cbItem, RTUINT cItems, uint32_t cMilliesInterval,
    120                                          PFNPDMQUEUEEXT pfnCallback, void *pvUser, PPDMQUEUE *ppQueue);
     120                                         PFNPDMQUEUEEXT pfnCallback, void *pvUser, const char *pszName, PPDMQUEUE *ppQueue);
    121121VMMR3DECL(int)  PDMR3QueueDestroy(PPDMQUEUE pQueue);
    122122VMMR3DECL(int)  PDMR3QueueDestroyDevice(PVM pVM, PPDMDEVINS pDevIns);
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