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

Method Close

cpp/src/platform/HidController.cpp:165–182  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Close a HID port -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

163// Close a HID port
164//-----------------------------------------------------------------------------
165bool HidController::Close
166(
167)
168{
169 if( m_thread )
170 {
171 m_thread->Stop();
172 m_thread->Release();
173 m_thread = NULL;
174 }
175
176 hid_close( m_hHidController );
177 m_hHidController = NULL;
178
179 m_bOpen = false;
180 hid_exit();
181 return true;
182}
183
184//-----------------------------------------------------------------------------
185// <HidController::ThreadEntryPoint>

Callers 1

~DriverMethod · 0.45

Calls 3

StopMethod · 0.80
hid_closeFunction · 0.50
ReleaseMethod · 0.45

Tested by

no test coverage detected