VirtualBox

Changeset 33840 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Nov 8, 2010 1:44:38 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
67486
Message:

AsyncCompletion: Alignment assertions and remove a bit of unused code

Location:
trunk/src/VBox/VMM
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/PDMAsyncCompletion.cpp

    r33540 r33840  
    10671067    if (RT_LIKELY(pTask))
    10681068    {
    1069         /* Get ID of the task. */
    1070         pTask->uTaskId   = ASMAtomicIncU32(&pEndpoint->uTaskIdNext);
    1071 
    10721069        /* Initialize common parts. */
    10731070        pTask->pvUser    = pvUser;
     
    12191216            pEndpoint->pPrev             = NULL;
    12201217            pEndpoint->pEpClass          = pEndpointClass;
    1221             pEndpoint->uTaskIdNext       = 0;
    1222             pEndpoint->fTaskIdWraparound = false;
    12231218            pEndpoint->pTemplate         = pTemplate;
    12241219            pEndpoint->pszUri            = RTStrDup(pszFilename);
  • trunk/src/VBox/VMM/PDMAsyncCompletionInternal.h

    r33540 r33840  
    200200    /** Pointer to the class this endpoint belongs to. */
    201201    R3PTRTYPE(PPDMASYNCCOMPLETIONEPCLASS)       pEpClass;
    202     /** ID of the next task to ensure consistency. */
    203     volatile uint32_t                           uTaskIdNext;
    204     /** Flag whether a wraparound occurred for the ID counter. */
    205     bool                                        fTaskIdWraparound;
    206202    /** Template associated with this endpoint. */
    207203    PPDMASYNCCOMPLETIONTEMPLATE                 pTemplate;
     
    213209    volatile PPDMACBWMGR                        pBwMgr;
    214210#ifdef VBOX_WITH_STATISTICS
     211    uint32_t                                    u32Alignment;
    215212    STAMCOUNTER                                 StatTaskRunTimesNs[10];
    216213    STAMCOUNTER                                 StatTaskRunTimesMicroSec[10];
     
    225222#endif
    226223} PDMASYNCCOMPLETIONENDPOINT;
     224#ifdef VBOX_WITH_STATISTICS
     225AssertCompileMemberAlignment(PDMASYNCCOMPLETIONENDPOINT, StatTaskRunTimesNs, sizeof(uint64_t));
     226#endif
    227227
    228228/**
     
    242242    /** Opaque user data for this task. */
    243243    void                                   *pvUser;
    244     /** Task id. */
    245     uint32_t                                uTaskId;
    246244    /** Start timestamp. */
    247245    uint64_t                                tsNsStart;
Note: See TracChangeset for help on using the changeset viewer.

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