VirtualBox

Changeset 97268 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Oct 24, 2022 7:52:46 AM (2 years ago)
Author:
vboxsync
Message:

Validation Kit/HGCM: Renaming + signal the connect event when a HGCM client connected.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/GuestHost/HGCMMock.h

    r97256 r97268  
    182182     *  queue change. */
    183183    RTSEMEVENT         hEventQueue;
    184     /** Event semaphore for waiting on events, such
    185      *  as clients connecting. */
    186     RTSEMEVENT         hEventWait;
     184    /** Event semaphore for clients connecting to the server. */
     185    RTSEMEVENT         hEventConnect;
    187186    /** Number of current host calls being served.
    188187     *  Currently limited to one call at a time. */
     
    299298    ASMAtomicIncU32(&pSvc->uNextClientId);
    300299
     300    rc2 = RTSemEventSignal(pSvc->hEventConnect);
     301    AssertRCReturn(rc2, rc2);
     302
    301303    *pidClient = pClient->idClient;
    302304
     
    554556PTSTHGCMMOCKCLIENT TstHgcmMockSvcWaitForConnectEx(PTSTHGCMMOCKSVC pSvc, RTMSINTERVAL msTimeout)
    555557{
    556     int rc = RTSemEventWait(pSvc->hEventWait, msTimeout);
     558    int rc = RTSemEventWait(pSvc->hEventConnect, msTimeout);
    557559    if (RT_SUCCESS(rc))
    558560    {
     
    594596        if (RT_SUCCESS(rc))
    595597        {
    596             rc = RTSemEventCreate(&pSvc->hEventWait);
     598            rc = RTSemEventCreate(&pSvc->hEventConnect);
    597599            if (RT_SUCCESS(rc))
    598600            {
     
    620622        rc = RTSemEventDestroy(pSvc->hEventHostCall);
    621623        if (RT_SUCCESS(rc))
    622             RTSemEventDestroy(pSvc->hEventWait);
     624            RTSemEventDestroy(pSvc->hEventConnect);
    623625    }
    624626    return rc;
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