Changeset 14074 in vbox for trunk/src/VBox/VMM
- Timestamp:
- Nov 11, 2008 12:02:26 AM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 39130
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/PDMQueue.cpp
r13818 r14074 79 79 */ 80 80 cbItem = RT_ALIGN(cbItem, sizeof(RTUINTPTR)); 81 unsignedcb = cbItem * cItems + RT_ALIGN_Z(RT_OFFSETOF(PDMQUEUE, aFreeItems[cItems + PDMQUEUE_FREE_SLACK]), 16);81 size_t cb = cbItem * cItems + RT_ALIGN_Z(RT_OFFSETOF(PDMQUEUE, aFreeItems[cItems + PDMQUEUE_FREE_SLACK]), 16); 82 82 PPDMQUEUE pQueue; 83 83 int rc; … … 646 646 */ 647 647 PPDMQUEUEITEMCORE pItems = (PPDMQUEUEITEMCORE)ASMAtomicXchgPtr((void * volatile *)&pQueue->pPendingR3, NULL); 648 RTRCPTR pItemsRC; 649 ASMAtomicXchgSizeCorrect(&pQueue->pPendingRC, NIL_RTRCPTR, &pItemsRC); 650 RTR0PTR pItemsR0; 651 ASMAtomicXchgSizeCorrect(&pQueue->pPendingR0, NIL_RTR0PTR, &pItemsR0); 648 RTRCPTR pItemsRC = ASMAtomicXchgRCPtr(&pQueue->pPendingRC, NIL_RTRCPTR); 649 RTR0PTR pItemsR0 = ASMAtomicXchgR0Ptr(&pQueue->pPendingR0, NIL_RTR0PTR); 652 650 653 651 AssertMsg(pItems || pItemsRC || pItemsR0, ("ERROR: can't all be NULL now!\n"));
Note:
See TracChangeset
for help on using the changeset viewer.