VirtualBox

Changeset 79055 in vbox


Ignore:
Timestamp:
Jun 8, 2019 11:26:05 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
131213
Message:

Main/GuestImpl: Added OnGuestAdditionsStatusChanged event so the validation kit can more efficiently wait on GAs to come online. [missed one place] bugref:9151

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/GuestImpl.cpp

    r79053 r79055  
    11431143    RTTimeNow(&TimeSpecTS);
    11441144
    1145     i_facilityUpdate(VBoxGuestFacilityType_Seamless,
    1146                      aCaps & VMMDEV_GUEST_SUPPORTS_SEAMLESS ? VBoxGuestFacilityStatus_Active : VBoxGuestFacilityStatus_Inactive,
    1147                      0 /*fFlags*/, &TimeSpecTS);
     1145    bool fFireEvent = i_facilityUpdate(VBoxGuestFacilityType_Seamless,
     1146                                       aCaps & VMMDEV_GUEST_SUPPORTS_SEAMLESS
     1147                                       ? VBoxGuestFacilityStatus_Active : VBoxGuestFacilityStatus_Inactive,
     1148                                       0 /*fFlags*/, &TimeSpecTS);
    11481149    /** @todo Add VMMDEV_GUEST_SUPPORTS_GUEST_HOST_WINDOW_MAPPING */
    1149 }
     1150
     1151    /*
     1152     * Fire event if the state actually changed.
     1153     */
     1154    if (fFireEvent)
     1155    {
     1156        AdditionsRunLevelType_T const enmRunLevel = mData.mAdditionsRunLevel;
     1157        alock.release();
     1158        fireGuestAdditionsStatusChangedEvent(mEventSource, AdditionsFacilityType_Seamless,
     1159                                             aCaps & VMMDEV_GUEST_SUPPORTS_SEAMLESS
     1160                                             ? AdditionsFacilityStatus_Active : AdditionsFacilityStatus_Inactive, enmRunLevel,
     1161                                             RTTimeSpecGetMilli(&TimeSpecTS));
     1162    }
     1163}
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