Skip to content

Commit

Permalink
px4_sem: Re-enable priority inheritance for kernel mode
Browse files Browse the repository at this point in the history
  • Loading branch information
pussuw committed Nov 16, 2023
1 parent 146f2f8 commit d096195
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions platforms/common/include/px4_platform_common/sem.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,16 +89,11 @@ typedef sem_t px4_sem_t;

__BEGIN_DECLS

// TODO: REMOVE ME
#ifndef CONFIG_BUILD_KERNEL
#define px4_sem_init(s, p, v) ({ \
int __ret; \
do { __ret = sem_init(s, p, v); sem_setprotocol(s, SEM_PRIO_INHERIT); } while(0); \
__ret; \
})
#else
#define px4_sem_init sem_init
#endif
#define px4_sem_setprotocol sem_setprotocol
#define px4_sem_wait sem_wait
#define px4_sem_trywait sem_trywait
Expand Down

0 comments on commit d096195

Please sign in to comment.