----------------------------------------------------------------------------- Close the serial port -----------------------------------------------------------------------------
| 88 | // Close the serial port |
| 89 | //----------------------------------------------------------------------------- |
| 90 | void SerialControllerImpl::Close |
| 91 | ( |
| 92 | ) |
| 93 | { |
| 94 | ::SetEvent( m_hExit ); |
| 95 | ::WaitForSingleObject( m_hThread, INFINITE ); |
| 96 | |
| 97 | CloseHandle( m_hThread ); |
| 98 | m_hThread = INVALID_HANDLE_VALUE; |
| 99 | |
| 100 | CloseHandle( m_hExit ); |
| 101 | m_hExit = INVALID_HANDLE_VALUE; |
| 102 | |
| 103 | CloseHandle( m_hSerialController ); |
| 104 | m_hSerialController = INVALID_HANDLE_VALUE; |
| 105 | } |
| 106 | |
| 107 | //----------------------------------------------------------------------------- |
| 108 | // <SerialReadThreadEntryPoint> |
nothing calls this directly
no test coverage detected