ostest:add sem protocl to priority inheritance
ostest testcase use sem as lock need set protocl Signed-off-by: anjiahao <anjiahao@xiaomi.com>
This commit is contained in:
parent
f6ab04addb
commit
65668b33d9
@ -518,6 +518,8 @@ void priority_inheritance(void)
|
||||
g_medpri = my_pri - 1;
|
||||
|
||||
sem_init(&g_sem, 0, NLOWPRI_THREADS);
|
||||
sem_setprotocol(&g_sem, SEM_PRIO_INHERIT);
|
||||
|
||||
dump_nfreeholders("priority_inheritance:");
|
||||
|
||||
/* Start the low priority threads */
|
||||
|
Loading…
x
Reference in New Issue
Block a user