mirror of
https://github.com/apache/nuttx.git
synced 2026-06-08 01:42:58 +08:00
libc/pthread:pthread_barrierinit sem use pri_none
barrier is used protect resources. don't lock Signed-off-by: anjiahao <anjiahao@xiaomi.com>
This commit is contained in:
@@ -82,6 +82,7 @@ int pthread_barrier_init(FAR pthread_barrier_t *barrier,
|
||||
else
|
||||
{
|
||||
sem_init(&barrier->sem, 0, 0);
|
||||
sem_setprotocol(&barrier->sem, SEM_PRIO_NONE);
|
||||
barrier->count = count;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user