From b3a8ba4e9253aaba9f7505ac6226138ce4119bcc Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Sun, 20 Sep 2015 00:29:22 +0200 Subject: [PATCH] param: Move to POSIX semaphore abstraction --- src/modules/systemlib/param/param.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/systemlib/param/param.c b/src/modules/systemlib/param/param.c index 4efe7bea0d..4ba9d32004 100644 --- a/src/modules/systemlib/param/param.c +++ b/src/modules/systemlib/param/param.c @@ -147,14 +147,14 @@ static param_t param_find_internal(const char *name, bool notification); static void param_lock(void) { - //do {} while (sem_wait(¶m_sem) != 0); + //do {} while (px4_sem_wait(¶m_sem) != 0); } /** unlock the parameter store */ static void param_unlock(void) { - //sem_post(¶m_sem); + //px4_sem_post(¶m_sem); } /** assert that the parameter store is locked */