Skip to content

Commit

Permalink
core: added comment on how to cache parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
julianoes committed Jul 19, 2018
1 parent ea3bd11 commit 0f47a71
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/system_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ class SystemImpl {
std::pair<bool, float> get_param_ext_float(const std::string &name);
std::pair<bool, int> get_param_ext_int(const std::string &name);

// These methods can be used to cache a parameter when a system connects. For that
// the callback can just be set to nullptr.
void get_param_float_async(const std::string &name, get_param_float_callback_t callback);
void get_param_int_async(const std::string &name, get_param_int_callback_t callback);
void get_param_ext_float_async(const std::string &name, get_param_float_callback_t callback);
Expand Down

0 comments on commit 0f47a71

Please sign in to comment.