projects
/
rtos
/
tinyara.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff06c53
)
net lwip: disable priority inheritance on all signaling semaphores
author
EunBong Song
<eunb.song@samsung.com>
Tue, 11 Apr 2017 06:55:05 +0000
(15:55 +0900)
committer
Heesub Shin
<heesub.shin@samsung.com>
Tue, 18 Apr 2017 03:02:16 +0000
(12:02 +0900)
Disable priority inheritance on all semaphores used for signaling in lwip.
Change-Id: I8c01ddf8c0ff588cbb9948085d6e08986f5b2886
Signed-off-by: EunBong Song <eunb.song@samsung.com>
os/net/lwip/sys/arch/sys_arch.c
patch
|
blob
|
history
diff --git
a/os/net/lwip/sys/arch/sys_arch.c
b/os/net/lwip/sys/arch/sys_arch.c
index
d1e2631
..
dd924fa
100644
(file)
--- a/
os/net/lwip/sys/arch/sys_arch.c
+++ b/
os/net/lwip/sys/arch/sys_arch.c
@@
-394,6
+394,7
@@
void sys_mbox_set_invalid(sys_mbox_t *mbox)
err_t sys_sem_new(sys_sem_t *sem, u8_t count)
{
int status = -1;
+
status = sem_init(sem, 0, count);
if (status != OK) {
#if SYS_STATS
@@
-404,6
+405,8
@@
err_t sys_sem_new(sys_sem_t *sem, u8_t count)
#if SYS_STATS
SYS_STATS_INC_USED(sem);
#endif /* SYS_STATS */
+ if (count == 0)
+ sem_setprotocol(sem, SEM_PRIO_NONE);
return ERR_OK;
}