| 172 | } |
| 173 | |
| 174 | int StreamingBoard::release_session () |
| 175 | { |
| 176 | if (initialized) |
| 177 | { |
| 178 | if (keep_alive) |
| 179 | { |
| 180 | stop_stream (); |
| 181 | } |
| 182 | free_packages (); |
| 183 | initialized = false; |
| 184 | for (auto client : clients) |
| 185 | { |
| 186 | delete client; |
| 187 | } |
| 188 | clients.clear (); |
| 189 | presets.clear (); |
| 190 | } |
| 191 | return (int)BrainFlowExitCodes::STATUS_OK; |
| 192 | } |
| 193 | |
| 194 | void StreamingBoard::read_thread (int num) |
| 195 | { |
nothing calls this directly
no test coverage detected