param_shmem.c: comment out locking on Snappy

The param locking doesn't seem to be working on Snapdragon, so let's
just comment it out again.
This commit is contained in:
Julian Oes
2017-03-08 14:05:47 +01:00
committed by Lorenz Meier
parent 9235c0fd67
commit 0c926106f1
+8 -4
View File
@@ -165,20 +165,23 @@ static void param_set_used_internal(param_t param);
static param_t param_find_internal(const char *name, bool notification);
static px4_sem_t param_sem; ///< this protects against concurrent access to param_values and param save
// TODO: not working on Snappy just yet
//static px4_sem_t param_sem; ///< this protects against concurrent access to param_values and param save
/** lock the parameter store */
static void
param_lock(void)
{
do {} while (px4_sem_wait(&param_sem) != 0);
// TODO: this doesn't seem to work on Snappy
//do {} while (px4_sem_wait(&param_sem) != 0);
}
/** unlock the parameter store */
static void
param_unlock(void)
{
px4_sem_post(&param_sem);
// TODO: this doesn't seem to work on Snappy
//px4_sem_post(&param_sem);
}
/** assert that the parameter store is locked */
@@ -191,7 +194,8 @@ param_assert_locked(void)
void
param_init(void)
{
px4_sem_init(&param_sem, 0, 1);
// TODO: not needed on Snappy yet.
// px4_sem_init(&param_sem, 0, 1);
}
/**