mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-08 10:50:19 +08:00
flashparams: remove the locking stubs
locking will be done in the params module
This commit is contained in:
@@ -70,22 +70,6 @@ struct param_wbuf_s {
|
||||
bool unsaved;
|
||||
};
|
||||
|
||||
|
||||
/** lock the parameter store */
|
||||
static void
|
||||
param_lock(void)
|
||||
{
|
||||
//do {} while (sem_wait(¶m_sem) != 0);
|
||||
}
|
||||
|
||||
/** unlock the parameter store */
|
||||
static void
|
||||
param_unlock(void)
|
||||
{
|
||||
//sem_post(¶m_sem);
|
||||
}
|
||||
|
||||
|
||||
static int
|
||||
param_export_internal(bool only_unsaved)
|
||||
{
|
||||
@@ -93,8 +77,6 @@ param_export_internal(bool only_unsaved)
|
||||
struct bson_encoder_s encoder;
|
||||
int result = -1;
|
||||
|
||||
param_lock();
|
||||
|
||||
/* Use realloc */
|
||||
|
||||
bson_encoder_init_buf(&encoder, NULL, 0);
|
||||
@@ -165,7 +147,6 @@ param_export_internal(bool only_unsaved)
|
||||
result = 0;
|
||||
|
||||
out:
|
||||
param_unlock();
|
||||
|
||||
if (result == 0) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user