VirtualBox

Changeset 31210 in vbox


Ignore:
Timestamp:
Jul 29, 2010 1:16:26 PM (14 years ago)
Author:
vboxsync
Message:

EventImpl.cpp: Initialize all the ListenerRecord members to prevent anyone from thinking the object is freed/corrupted again.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/EventImpl.cpp

    r31034 r31210  
    576576    RTCRITSECT                    mcsQLock;
    577577    PassiveQueue                  mQueue;
    578     int32_t                       mRefCnt;
     578    int32_t volatile              mRefCnt;
    579579    uint64_t                      mLastRead;
    580580
     
    738738        mLastRead = RTTimeMilliTS();
    739739    }
     740    else
     741    {
     742        mQEvent =NIL_RTSEMEVENT;
     743        RT_ZERO(mcsQLock);
     744        mLastRead = 0;
     745    }
    740746}
    741747
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