vbox: implement 'drvNicAsyncIoWakeup()'

Fixes #1893
This commit is contained in:
Christian Prochaska 2016-02-23 11:48:06 +01:00 committed by Christian Helmuth
parent 3c23ddb2d5
commit 2df6cd64d4
1 changed files with 6 additions and 4 deletions

View File

@ -420,10 +420,12 @@ static DECLCALLBACK(int) drvNicAsyncIoThread(PPDMDRVINS pDrvIns, PPDMTHREAD pThr
*/
static DECLCALLBACK(int) drvNicAsyncIoWakeup(PPDMDRVINS pDrvIns, PPDMTHREAD pThread)
{
/*
* Since we already wake up on singals in the I/O thread function
* we just return success at this point.
*/
PDRVNIC pThis = PDMINS_2_DATA(pDrvIns, PDRVNIC);
Nic_client *nic_client = pThis->nic_client;
if (nic_client)
Genode::Signal_transmitter(nic_client->dispatcher()).submit();
return VINF_SUCCESS;
}