MCPcopy Create free account
hub / github.com/brainflow-dev/brainflow / release_session

Method release_session

src/board_controller/streaming_board.cpp:174–192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

172}
173
174int StreamingBoard::release_session ()
175{
176 if (initialized)
177 {
178 if (keep_alive)
179 {
180 stop_stream ();
181 }
182 free_packages ();
183 initialized = false;
184 for (auto client : clients)
185 {
186 delete client;
187 }
188 clients.clear ();
189 presets.clear ();
190 }
191 return (int)BrainFlowExitCodes::STATUS_OK;
192}
193
194void StreamingBoard::read_thread (int num)
195{

Callers

nothing calls this directly

Calls 1

stop_streamFunction · 0.70

Tested by

no test coverage detected