Changeset 30111 in vbox for trunk/src/VBox/HostDrivers/VBoxNetFlt/darwin
- Timestamp:
- Jun 9, 2010 12:14:59 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 62505
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/VBoxNetFlt/darwin/VBoxNetFlt-darwin.cpp
r29662 r30111 236 236 if (!ASMAtomicUoReadBool(&pThis->fDisconnectedFromHost)) 237 237 { 238 pIfNet = (ifnet_t)ASMAtomicUoReadPtr((void * volatile *)&pThis->u.s.pIfNet);238 pIfNet = ASMAtomicUoReadPtrT(&pThis->u.s.pIfNet, ifnet_t); 239 239 if (pIfNet) 240 240 ifnet_reference(pIfNet); … … 666 666 RTSpinlockAcquireNoInts(pThis->hSpinlock, &Tmp); 667 667 668 pIfNet = (ifnet_t)ASMAtomicUoReadPtr((void * volatile *)&pThis->u.s.pIfNet);668 pIfNet = ASMAtomicUoReadPtrT(&pThis->u.s.pIfNet, ifnet_t); 669 669 int cPromisc = VALID_PTR(pIfNet) ? VBOX_GET_PCOUNT(pIfNet) : - 1; 670 670 671 ASMAtomicUoWritePtr( (void * volatile *)&pThis->u.s.pIfNet, NULL);672 ASMAtomicUoWritePtr( (void * volatile *)&pThis->u.s.pIfFilter, NULL);671 ASMAtomicUoWritePtr(&pThis->u.s.pIfNet, NULL); 672 ASMAtomicUoWritePtr(&pThis->u.s.pIfFilter, NULL); 673 673 ASMAtomicWriteBool(&pThis->u.s.fNeedSetPromiscuous, false); 674 674 pThis->u.s.fSetPromiscuous = false; … … 914 914 RTSPINLOCKTMP Tmp = RTSPINLOCKTMP_INITIALIZER; 915 915 RTSpinlockAcquireNoInts(pThis->hSpinlock, &Tmp); 916 ASMAtomicUoWritePtr( (void * volatile *)&pThis->u.s.pIfNet, pIfNet);916 ASMAtomicUoWritePtr(&pThis->u.s.pIfNet, pIfNet); 917 917 RTSpinlockReleaseNoInts(pThis->hSpinlock, &Tmp); 918 918 … … 940 940 941 941 RTSpinlockAcquireNoInts(pThis->hSpinlock, &Tmp); 942 pIfNet = (ifnet_t)ASMAtomicUoReadPtr((void * volatile *)&pThis->u.s.pIfNet);942 pIfNet = ASMAtomicUoReadPtrT(&pThis->u.s.pIfNet, ifnet_t); 943 943 if (pIfNet && !err) 944 944 { 945 945 ASMAtomicUoWriteBool(&pThis->fDisconnectedFromHost, false); 946 ASMAtomicUoWritePtr( (void * volatile *)&pThis->u.s.pIfFilter, pIfFilter);946 ASMAtomicUoWritePtr(&pThis->u.s.pIfFilter, pIfFilter); 947 947 pIfNet = NULL; /* don't dereference it */ 948 948 } … … 1162 1162 */ 1163 1163 RTSpinlockAcquireNoInts(pThis->hSpinlock, &Tmp); 1164 pIfFilter = (interface_filter_t)ASMAtomicUoReadPtr((void * volatile *)&pThis->u.s.pIfFilter);1164 pIfFilter = ASMAtomicUoReadPtrT(&pThis->u.s.pIfFilter, interface_filter_t); 1165 1165 if (pIfFilter) 1166 ASMAtomicUoWritePtr( (void * volatile *)&pThis->u.s.pIfFilter, NULL);1166 ASMAtomicUoWritePtr(&pThis->u.s.pIfFilter, NULL); 1167 1167 RTSpinlockReleaseNoInts(pThis->hSpinlock, &Tmp); 1168 1168
Note:
See TracChangeset
for help on using the changeset viewer.