Changeset 20889 in vbox
- Timestamp:
- Jun 24, 2009 12:06:59 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/src/VBox/VMM/PDMQueue.cpp (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/PDMQueue.cpp
r20088 r20889 144 144 * Insert into the queue list for timer driven queues. 145 145 */ 146 pdmLock(pVM); 146 147 pQueue->pNext = pVM->pdm.s.pQueuesTimer; 147 148 pVM->pdm.s.pQueuesTimer = pQueue; 149 pdmUnlock(pVM); 148 150 } 149 151 else … … 159 161 * problem any longer. The priority might be a nice feature for later though. 160 162 */ 163 pdmLock(pVM); 161 164 if (!pVM->pdm.s.pQueuesForced) 162 165 pVM->pdm.s.pQueuesForced = pQueue; … … 168 171 pPrev->pNext = pQueue; 169 172 } 173 pdmUnlock(pVM); 170 174 } 171 175 … … 387 391 Assert(pQueue && pQueue->pVMR3); 388 392 PVM pVM = pQueue->pVMR3; 389 VMCPU_ASSERT_EMT(&pVM->aCpus[0]); 393 394 pdmLock(pVM); 390 395 391 396 /* … … 432 437 pQueue->pNext = NULL; 433 438 pQueue->pVMR3 = NULL; 439 pdmUnlock(pVM); 434 440 435 441 /* … … 471 477 if (!pDevIns) 472 478 return VERR_INVALID_PARAMETER; 473 VMCPU_ASSERT_EMT(&pVM->aCpus[0]); 479 480 pdmLock(pVM); 474 481 475 482 /* … … 499 506 } while (pQueue); 500 507 508 pdmUnlock(pVM); 501 509 return VINF_SUCCESS; 502 510 } … … 520 528 if (!pDrvIns) 521 529 return VERR_INVALID_PARAMETER; 522 VMCPU_ASSERT_EMT(&pVM->aCpus[0]); /** @todo fix this using the "Misc" critical section. */ 530 531 pdmLock(pVM); 523 532 524 533 /* … … 548 557 } while (pQueue); 549 558 559 pdmUnlock(pVM); 550 560 return VINF_SUCCESS; 551 561 }
Note:
See TracChangeset
for help on using the changeset viewer.

