MCPcopy Create free account
hub / github.com/OpenZWave/open-zwave / Close

Method Close

cpp/src/platform/windows/SerialControllerImpl.cpp:90–105  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Close the serial port -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

88// Close the serial port
89//-----------------------------------------------------------------------------
90void 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>

Callers

nothing calls this directly

Calls 1

SetEventFunction · 0.85

Tested by

no test coverage detected