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

Method stop_stream

src/board_controller/neuropawn/knight_base.cpp:85–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83}
84
85int KnightBase::stop_stream ()
86{
87 if (is_streaming)
88 {
89 keep_alive = false;
90 is_streaming = false;
91 if (streaming_thread.joinable ())
92 {
93 streaming_thread.join ();
94 }
95 return (int)BrainFlowExitCodes::STATUS_OK;
96 }
97 else
98 {
99 return (int)BrainFlowExitCodes::STREAM_THREAD_IS_NOT_RUNNING;
100 }
101}
102
103int KnightBase::release_session ()
104{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected