VirtualBox

Changeset 95504 in vbox for trunk/src/VBox/HostServices


Ignore:
Timestamp:
Jul 4, 2022 4:49:06 PM (2 years ago)
Author:
vboxsync
Message:

Guest Control/Host Service: Documented and slightly refactored ClientState::Wakeup() to only use one return point (easier for logging). bugref:10157

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/GuestControl/VBoxGuestControlSvc.cpp

    r93444 r95504  
    522522     * Used by for Service::hostProcessMessage().
    523523     *
     524     * @returns VBox status code.
     525     * @retval  VINF_NO_CHANGE if the client has not been woken up.
     526     *
    524527     * @note This wakes up both GUEST_MSG_WAIT and GUEST_MSG_PEEK_WAIT sleepers.
    525528     */
     
    528531        int rc = VINF_NO_CHANGE;
    529532
     533        LogFlowFunc(("[Client %RU32] enmPendingMsg=%RU32, idSession=%RU32, fIsMaster=%RTbool, fRestored=%RTbool\n",
     534                     m_idClient, m_enmPendingMsg, m_idSession, m_fIsMaster, m_fRestored));
     535
    530536        if (m_enmPendingMsg != 0)
    531537        {
    532             LogFlowFunc(("[Client %RU32] Waking up ...\n", m_idClient));
    533 
    534538            rc = VINF_SUCCESS;
    535539
     
    545549                    rc = m_pSvcHelpers->pfnCallComplete(m_PendingReq.mHandle, VINF_SUCCESS);
    546550
    547                     m_PendingReq.mHandle   = NULL;
    548                     m_PendingReq.mParms    = NULL;
    549                     m_PendingReq.mNumParms = 0;
     551                    m_PendingReq.mHandle    = NULL;
     552                    m_PendingReq.mParms     = NULL;
     553                    m_PendingReq.mNumParms  = 0;
    550554                    m_enmPendingMsg         = (guestControl::eGuestMsg)0;
    551555                }
     
    557561            else
    558562                AssertMsgFailed(("Waking up client ID=%RU32 with no host message in queue is a bad idea\n", m_idClient));
    559 
    560             return rc;
    561         }
    562 
    563         return VINF_NO_CHANGE;
     563        }
     564
     565        LogFlowFuncLeaveRC(rc);
     566        return rc;
    564567    }
    565568
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