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

Method Close

cpp/src/platform/unix/SerialControllerImpl.cpp:101–113  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

99// Close the serial port
100//-----------------------------------------------------------------------------
101void SerialControllerImpl::Close
102(
103)
104{
105 if( m_pThread )
106 {
107 m_pThread->Stop();
108 m_pThread->Release();
109 m_pThread = NULL;
110 }
111 close( m_hSerialController );
112 m_hSerialController = -1;
113}
114
115//-----------------------------------------------------------------------------
116// <SerialReadThreadEntryPoint>

Callers

nothing calls this directly

Calls 2

StopMethod · 0.80
ReleaseMethod · 0.45

Tested by

no test coverage detected