| 378 | } |
| 379 | |
| 380 | int insert_marker (double value, int preset, int board_id, const char *json_brainflow_input_params) |
| 381 | { |
| 382 | std::lock_guard<std::mutex> lock (mutex); |
| 383 | |
| 384 | std::pair<int, struct BrainFlowInputParams> key; |
| 385 | int res = check_board_session (board_id, json_brainflow_input_params, key, false); |
| 386 | if (res != (int)BrainFlowExitCodes::STATUS_OK) |
| 387 | { |
| 388 | return res; |
| 389 | } |
| 390 | auto board_it = boards.find (key); |
| 391 | return board_it->second->insert_marker (value, preset); |
| 392 | } |
| 393 | |
| 394 | int release_session (int board_id, const char *json_brainflow_input_params) |
| 395 | { |
no test coverage detected