VirtualBox

Changeset 43623 in vbox for trunk/src/VBox/VMM/include


Ignore:
Timestamp:
Oct 11, 2012 8:33:20 PM (12 years ago)
Author:
vboxsync
Message:

AsyncCompletion/File: Use a timer to process delayed requests and introduce jitter parameter to the injectdelay debugger command

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/include/PDMAsyncCompletionFileInternal.h

    r41469 r43623  
    4545
    4646/** Enable for delay injection from the debugger. */
    47 #if 0
     47#if 1
    4848# define PDM_ASYNC_COMPLETION_FILE_WITH_DELAY
    4949#endif
     
    272272    /** Flag whether the out of resources warning was printed already. */
    273273    bool                                fOutOfResourcesWarningPrinted;
     274#ifdef PDM_ASYNC_COMPLETION_FILE_WITH_DELAY
     275    /** Timer for delayed request completion. */
     276    PTMTIMERR3                          pTimer;
     277    /** Milliseconds until the next delay expires. */
     278    volatile uint64_t                   cMilliesNext;
     279#endif
    274280} PDMASYNCCOMPLETIONEPCLASSFILE;
    275281/** Pointer to the endpoint class data. */
     
    380386    /** Request delay. */
    381387    volatile uint32_t                      msDelay;
     388    /** Request delay jitter. */
     389    volatile uint32_t                      msJitter;
    382390    /** Number of requests to delay. */
    383391    volatile uint32_t                      cReqsDelay;
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