| 181 | } |
| 182 | |
| 183 | int release_all () |
| 184 | { |
| 185 | std::lock_guard<std::mutex> lock (models_mutex); |
| 186 | |
| 187 | for (auto it = ml_models.begin (), next_it = it; it != ml_models.end (); it = next_it) |
| 188 | { |
| 189 | ++next_it; |
| 190 | it->second->release (); |
| 191 | ml_models.erase (it); |
| 192 | } |
| 193 | |
| 194 | return (int)BrainFlowExitCodes::STATUS_OK; |
| 195 | } |
| 196 | |
| 197 | int get_version_ml_module (char *version, int *num_chars, int max_chars) |
| 198 | { |