VirtualBox

Changeset 28743 in vbox


Ignore:
Timestamp:
Apr 26, 2010 11:16:03 AM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
60619
Message:

HostServices/GuestProperties: reverted r59658: do not send an update notification if the value and flags of a property have not changed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/GuestProperties/service.cpp

    r27954 r28743  
    578578    RTTIMESPEC time;
    579579    uint64_t u64TimeNano = RTTimeSpecGetNano(RTTimeNow(&time));
    580     bool fNotify = true;
    581580
    582581    LogFlowThisFunc(("\n"));
     
    637636            if (found)
    638637            {
    639                 if (   !it->mValue.compare(pcszValue)
    640                     && (it->mFlags == fFlags))
    641                     fNotify = false;
    642638                it->mValue = pcszValue;
    643639                it->mTimestamp = u64TimeNano;
     
    650646             * Send a notification to the host and return.
    651647             */
    652             if (fNotify)
     648            // if (isGuest)  /* Notify the host even for properties that the host
     649            //                * changed.  Less efficient, but ensures consistency. */
    653650                doNotifications(pcszName, u64TimeNano);
    654651            Log2(("Set string %s, rc=%Rrc, value=%s\n", pcszName, rc, pcszValue));
Note: See TracChangeset for help on using the changeset viewer.

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