aboutsummaryrefslogtreecommitdiff
path: root/src/modules/systemlib
diff options
context:
space:
mode:
authorpx4dev <px4@purgatory.org>2013-09-18 22:40:07 -0700
committerpx4dev <px4@purgatory.org>2013-09-18 22:40:54 -0700
commit978a234d2903b34df7d13fcf0980db283a6f1166 (patch)
treeaa8e96bed63006cf09c307e664d7b948915ad10f /src/modules/systemlib
parenta9de6149da89981df4c579132fa0c96c2fd7a716 (diff)
downloadpx4-firmware-978a234d2903b34df7d13fcf0980db283a6f1166.tar.gz
px4-firmware-978a234d2903b34df7d13fcf0980db283a6f1166.tar.bz2
px4-firmware-978a234d2903b34df7d13fcf0980db283a6f1166.zip
Lock name should not equal locking function name. Urr.
Diffstat (limited to 'src/modules/systemlib')
-rw-r--r--src/modules/systemlib/param/param.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/systemlib/param/param.c b/src/modules/systemlib/param/param.c
index 2832d87ef..97c547848 100644
--- a/src/modules/systemlib/param/param.c
+++ b/src/modules/systemlib/param/param.c
@@ -96,20 +96,20 @@ ORB_DEFINE(parameter_update, struct parameter_update_s);
/** parameter update topic handle */
static orb_advert_t param_topic = -1;
-static sem_t param_lock = { .semcount = 1 };
+static sem_t param_sem = { .semcount = 1 };
/** lock the parameter store */
static void
param_lock(void)
{
- do {} while (sem_wait(&param_lock) != 0);
+ do {} while (sem_wait(&param_sem) != 0);
}
/** unlock the parameter store */
static void
param_unlock(void)
{
- sem_post(&param_lock);
+ sem_post(&param_sem);
}
/** assert that the parameter store is locked */