VirtualBox

Ignore:
Timestamp:
Mar 2, 2009 11:34:49 AM (16 years ago)
Author:
vboxsync
Message:

NetFlt/NetAdp: enabled new construct/distruct sinchronization

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/VBoxNetFlt/VBoxNetFlt.c

    r17229 r17244  
    228228#include <iprt/time.h>
    229229#include <iprt/semaphore.h>
     230#include <iprt/thread.h>
    230231
    231232
     
    645646     */
    646647    rc = RTSemFastMutexRequest(pGlobals->hFastMtx); AssertRC(rc);
    647 #ifdef VBOXNETFLT_STATIC_CONFIG
     648#if 0 //#ifdef VBOXNETFLT_STATIC_CONFIG
    648649/** @todo r=bird: This looks kind of insane! I ASSUME this is specific to the
    649650 * static config and to devices in the Unconnected state only. This *looks* like
     
    996997    PINTNETTRUNKIFPORT pIfPort;
    997998    PVBOXNETFLTINS pCur;
     999    VBOXNETFTLINSSTATE enmState;
    9981000    int rc;
    9991001
     
    10161018    while (pCur)
    10171019    {
    1018 #if 0
     1020#if 1
    10191021        uint32_t cRefs = ASMAtomicIncU32(&pCur->cRefs);
    10201022        if (cRefs > 1)
    10211023        {
    1022             VBOXNETFTLINSSTATE enmState = vboxNetFltGetState(pCur);
     1024            enmState = vboxNetFltGetState(pCur);
    10231025            switch (enmState)
    10241026            {
     
    11571159    {
    11581160#ifdef VBOXNETFLT_STATIC_CONFIG
    1159 # if 0 /** @todo r=bird: We need to fix the race here. The race is against release+destructor, the
     1161# if 1 /** @todo r=bird: We need to fix the race here. The race is against release+destructor, the
    11601162        * tell tale is a cRefs of and since cRefs is manipulated in an atomic fashion we can simply attempt
    11611163        * 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.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette