From 0c926106f1ea3be02033774d365520c4e2dc4d43 Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Wed, 8 Mar 2017 14:05:47 +0100 Subject: [PATCH] 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. --- src/modules/systemlib/param/param_shmem.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/modules/systemlib/param/param_shmem.c b/src/modules/systemlib/param/param_shmem.c index 629f0465e7..23ae13a6a5 100644 --- a/src/modules/systemlib/param/param_shmem.c +++ b/src/modules/systemlib/param/param_shmem.c @@ -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); } /**