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

Method release_session

src/board_controller/openbci/galea.cpp:339–357  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

337}
338
339int Galea::release_session ()
340{
341 if (initialized)
342 {
343 if (is_streaming)
344 {
345 stop_stream ();
346 }
347 free_packages ();
348 initialized = false;
349 if (socket)
350 {
351 socket->close ();
352 delete socket;
353 socket = NULL;
354 }
355 }
356 return (int)BrainFlowExitCodes::STATUS_OK;
357}
358
359void Galea::read_thread ()
360{

Callers

nothing calls this directly

Calls 2

stop_streamFunction · 0.50
closeMethod · 0.45

Tested by

no test coverage detected