parameters: new parameter server backend

- parameter backend is now running in a wq and accessible over pub/sub
 - parameters library can call into backend directly (with locking), but operations will gradually start moving to pub/sub
 - majority of parameters migrated as is, only small changes to parameter autosave and parameter notification that are now performed from the WQ thread
This commit is contained in:
Daniel Agar
2022-12-20 09:51:48 -05:00
parent 278bce7446
commit 5247db7647
41 changed files with 2975 additions and 2431 deletions
@@ -85,6 +85,7 @@ public:
virtual ~SubscriptionBlocking()
{
unregisterCallback();
pthread_mutex_destroy(&_mutex);
pthread_cond_destroy(&_cv);
}
+1 -1
View File
@@ -514,7 +514,7 @@ uORB::DeviceNode::register_callback(uORB::SubscriptionCallback *callback_sub)
ATOMIC_ENTER;
// prevent duplicate registrations
for (auto existing_callbacks : _callbacks) {
for (const auto &existing_callbacks : _callbacks) {
if (callback_sub == existing_callbacks) {
ATOMIC_LEAVE;
return true;