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

Method stop_stream

src/board_controller/playback_file_board.cpp:192–208  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

190}
191
192int PlaybackFileBoard::stop_stream ()
193{
194 if (keep_alive)
195 {
196 keep_alive = false;
197 for (std::thread &streaming_thread : streaming_threads)
198 {
199 streaming_thread.join ();
200 }
201 streaming_threads.clear ();
202 return (int)BrainFlowExitCodes::STATUS_OK;
203 }
204 else
205 {
206 return (int)BrainFlowExitCodes::STREAM_THREAD_IS_NOT_RUNNING;
207 }
208}
209
210int PlaybackFileBoard::release_session ()
211{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected