VirtualBox

Changeset 67796 in vbox for trunk/src/VBox/Additions/x11


Ignore:
Timestamp:
Jul 5, 2017 1:37:55 PM (7 years ago)
Author:
vboxsync
Message:

bugref:8524: Additions/linux: play nicely with distribution-installed Additions
Remove old VbglR3InterruptEventWaits() leftover from seamless.cpp.

Since the VbglR3InterruptEventWaits() API in VBoxGuest is rather clumsy, we
decided to forbid use of VbglR3WaitEvent() in a VBoxGuest session after
VbglR3InterruptEventWaits() has been called. This change removes the last
use of it (there were only two in the whole tree) which conflicts with that:
a sanity test in seamless.cpp which is testing something no longer relevant
in the current code.

Location:
trunk/src/VBox/Additions/x11/VBoxClient
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/x11/VBoxClient/seamless.cpp

    r62883 r67796  
    253253}
    254254
    255 /** @todo Expand this? */
    256 int SeamlessMain::selfTest()
    257 {
    258     int rc = VERR_INTERNAL_ERROR;
    259     const char *pcszStage;
    260 
    261     LogRelFlowFunc(("\n"));
    262     do {
    263         pcszStage = "Testing event loop cancellation";
    264         VbglR3InterruptEventWaits();
    265         if (RT_FAILURE(VbglR3WaitEvent(VMMDEV_EVENT_VALID_EVENT_MASK, 0, NULL)))
    266             break;
    267         if (   VbglR3WaitEvent(VMMDEV_EVENT_VALID_EVENT_MASK, 0, NULL)
    268             != VERR_TIMEOUT)
    269             break;
    270         rc = VINF_SUCCESS;
    271     } while(0);
    272     if (RT_FAILURE(rc))
    273         LogRel(("VBoxClient (seamless): self test failed.  Stage: \"%s\"\n",
    274                 pcszStage));
    275     return rc;
    276 }
    277 
    278255/** Service magic number, start of a UUID. */
    279256#define SEAMLESSSERVICE_MAGIC 0xd28ba727
     
    322299    if (RT_FAILURE(rc))
    323300        return rc;
    324     rc = pSelf->mSeamless.selfTest();
    325     if (RT_FAILURE(rc))
    326     {
    327         pSelf->mSeamless.stop();
    328         return rc;
    329     }
    330301    pSelf->mIsInitialised = true;
    331302    return VINF_SUCCESS;
  • trunk/src/VBox/Additions/x11/VBoxClient/testcase/tstSeamlessX11.cpp

    r62530 r67796  
    8080}
    8181
    82 int VbglR3WaitEvent(uint32_t , uint32_t cMillies, uint32_t *)
    83 {
    84     return RTSemEventWait(eventSem, cMillies);
    85 }
    86 
    87 int VbglR3InterruptEventWaits(void)
    88 {
    89     return RTSemEventSignal(eventSem);
    90 }
    91 
    9282VBGLR3DECL(int)     VbglR3InitUser(void) { return VINF_SUCCESS; }
    9383VBGLR3DECL(void)    VbglR3Term(void) {}
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