Changeset 17244 in vbox for trunk/src/VBox/HostDrivers/VBoxNetFlt
- Timestamp:
- Mar 2, 2009 11:34:49 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/VBoxNetFlt/VBoxNetFlt.c
r17229 r17244 228 228 #include <iprt/time.h> 229 229 #include <iprt/semaphore.h> 230 #include <iprt/thread.h> 230 231 231 232 … … 645 646 */ 646 647 rc = RTSemFastMutexRequest(pGlobals->hFastMtx); AssertRC(rc); 647 #if def VBOXNETFLT_STATIC_CONFIG648 #if 0 //#ifdef VBOXNETFLT_STATIC_CONFIG 648 649 /** @todo r=bird: This looks kind of insane! I ASSUME this is specific to the 649 650 * static config and to devices in the Unconnected state only. This *looks* like … … 996 997 PINTNETTRUNKIFPORT pIfPort; 997 998 PVBOXNETFLTINS pCur; 999 VBOXNETFTLINSSTATE enmState; 998 1000 int rc; 999 1001 … … 1016 1018 while (pCur) 1017 1019 { 1018 #if 01020 #if 1 1019 1021 uint32_t cRefs = ASMAtomicIncU32(&pCur->cRefs); 1020 1022 if (cRefs > 1) 1021 1023 { 1022 VBOXNETFTLINSSTATEenmState = vboxNetFltGetState(pCur);1024 enmState = vboxNetFltGetState(pCur); 1023 1025 switch (enmState) 1024 1026 { … … 1157 1159 { 1158 1160 #ifdef VBOXNETFLT_STATIC_CONFIG 1159 # if 0/** @todo r=bird: We need to fix the race here. The race is against release+destructor, the1161 # if 1 /** @todo r=bird: We need to fix the race here. The race is against release+destructor, the 1160 1162 * tell tale is a cRefs of and since cRefs is manipulated in an atomic fashion we can simply attempt 1161 1163 * to grab a reference atomically, the worst thing that can happen is that we have to decrement it again..
Note:
See TracChangeset
for help on using the changeset viewer.