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

Function release_session

src/board_controller/board_controller.cpp:394–408  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

392}
393
394int release_session (int board_id, const char *json_brainflow_input_params)
395{
396 std::lock_guard<std::mutex> lock (mutex);
397
398 std::pair<int, struct BrainFlowInputParams> key;
399 int res = check_board_session (board_id, json_brainflow_input_params, key, false);
400 if (res != (int)BrainFlowExitCodes::STATUS_OK)
401 {
402 return res;
403 }
404 auto board_it = boards.find (key);
405 res = board_it->second->release_session ();
406 boards.erase (board_it);
407 return res;
408}
409
410int get_current_board_data (int num_samples, int preset, double *data_buf, int *returned_samples,
411 int board_id, const char *json_brainflow_input_params)

Callers 15

release_sessionMethod · 0.85
~StreamingBoardMethod · 0.85
~PlaybackFileBoardMethod · 0.85
~DynLibBoardMethod · 0.85
~SyntheticBoardMethod · 0.85
~BTLibBoardMethod · 0.85
~AntNeuroBoardMethod · 0.85
~EmotibitMethod · 0.85
~KnightBaseMethod · 0.85
~GaleaMethod · 0.85
~GanglionMethod · 0.85

Calls 2

check_board_sessionFunction · 0.85
release_sessionMethod · 0.65

Tested by

no test coverage detected