mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-17 20:17:34 +08:00
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:
@@ -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(¶m_sem) != 0);
|
||||
// TODO: this doesn't seem to work on Snappy
|
||||
//do {} while (px4_sem_wait(¶m_sem) != 0);
|
||||
}
|
||||
|
||||
/** unlock the parameter store */
|
||||
static void
|
||||
param_unlock(void)
|
||||
{
|
||||
px4_sem_post(¶m_sem);
|
||||
// TODO: this doesn't seem to work on Snappy
|
||||
//px4_sem_post(¶m_sem);
|
||||
}
|
||||
|
||||
/** assert that the parameter store is locked */
|
||||
@@ -191,7 +194,8 @@ param_assert_locked(void)
|
||||
void
|
||||
param_init(void)
|
||||
{
|
||||
px4_sem_init(¶m_sem, 0, 1);
|
||||
// TODO: not needed on Snappy yet.
|
||||
// px4_sem_init(¶m_sem, 0, 1);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user