Changeset 74446 in vbox for trunk/src/VBox/Devices/Serial/DrvHostSerial.cpp
- Timestamp:
- Sep 24, 2018 4:05:11 PM (7 years ago)
- svn:sync-xref-src-repo-rev:
- 125293
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Serial/DrvHostSerial.cpp
r73766 r74446 355 355 356 356 return RTSerialPortQueryStatusLines(pThis->hSerialPort, pfStsLines); 357 } 358 359 360 /** 361 * @callback_method_impl{PDMISERIALCONNECTOR,pfnQueuesFlush} 362 */ 363 static DECLCALLBACK(int) drvHostSerialQueuesFlush(PPDMISERIALCONNECTOR pInterface, bool fQueueRecv, bool fQueueXmit) 364 { 365 RT_NOREF(fQueueXmit); 366 LogFlowFunc(("pInterface=%#p fQueueRecv=%RTbool fQueueXmit=%RTbool\n", pInterface, fQueueRecv, fQueueXmit)); 367 int rc = VINF_SUCCESS; 368 PDRVHOSTSERIAL pThis = RT_FROM_MEMBER(pInterface, DRVHOSTSERIAL, ISerialConnector); 369 370 if (fQueueRecv) 371 { 372 size_t cbOld = 0; 373 ASMAtomicXchgSizeCorrect(&pThis->cbReadBuf, 0, &cbOld); 374 if (cbOld) /* Kick the I/O thread to fetch new data. */ 375 rc = RTSerialPortEvtPollInterrupt(pThis->hSerialPort); 376 } 377 378 LogFlowFunc(("-> %Rrc\n", rc)); 379 return VINF_SUCCESS; 357 380 } 358 381 … … 582 605 pThis->ISerialConnector.pfnChgBrk = drvHostSerialChgBrk; 583 606 pThis->ISerialConnector.pfnQueryStsLines = drvHostSerialQueryStsLines; 607 pThis->ISerialConnector.pfnQueuesFlush = drvHostSerialQueuesFlush; 584 608 585 609 /*
Note:
See TracChangeset
for help on using the changeset viewer.