Changeset 33840 in vbox for trunk/src/VBox/VMM
- Timestamp:
- Nov 8, 2010 1:44:38 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 67486
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/PDMAsyncCompletion.cpp
r33540 r33840 1067 1067 if (RT_LIKELY(pTask)) 1068 1068 { 1069 /* Get ID of the task. */1070 pTask->uTaskId = ASMAtomicIncU32(&pEndpoint->uTaskIdNext);1071 1072 1069 /* Initialize common parts. */ 1073 1070 pTask->pvUser = pvUser; … … 1219 1216 pEndpoint->pPrev = NULL; 1220 1217 pEndpoint->pEpClass = pEndpointClass; 1221 pEndpoint->uTaskIdNext = 0;1222 pEndpoint->fTaskIdWraparound = false;1223 1218 pEndpoint->pTemplate = pTemplate; 1224 1219 pEndpoint->pszUri = RTStrDup(pszFilename); -
trunk/src/VBox/VMM/PDMAsyncCompletionInternal.h
r33540 r33840 200 200 /** Pointer to the class this endpoint belongs to. */ 201 201 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;206 202 /** Template associated with this endpoint. */ 207 203 PPDMASYNCCOMPLETIONTEMPLATE pTemplate; … … 213 209 volatile PPDMACBWMGR pBwMgr; 214 210 #ifdef VBOX_WITH_STATISTICS 211 uint32_t u32Alignment; 215 212 STAMCOUNTER StatTaskRunTimesNs[10]; 216 213 STAMCOUNTER StatTaskRunTimesMicroSec[10]; … … 225 222 #endif 226 223 } PDMASYNCCOMPLETIONENDPOINT; 224 #ifdef VBOX_WITH_STATISTICS 225 AssertCompileMemberAlignment(PDMASYNCCOMPLETIONENDPOINT, StatTaskRunTimesNs, sizeof(uint64_t)); 226 #endif 227 227 228 228 /** … … 242 242 /** Opaque user data for this task. */ 243 243 void *pvUser; 244 /** Task id. */245 uint32_t uTaskId;246 244 /** Start timestamp. */ 247 245 uint64_t tsNsStart;
Note:
See TracChangeset
for help on using the changeset viewer.