mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_HAL_Linux: make all semaphores priority-inherit
This commit is contained in:
parent
d9818ae1ab
commit
c8f9d193fb
@ -11,6 +11,7 @@ Semaphore::Semaphore()
|
||||
{
|
||||
pthread_mutexattr_t attr;
|
||||
pthread_mutexattr_init(&attr);
|
||||
pthread_mutexattr_setprotocol(&attr, PTHREAD_PRIO_INHERIT);
|
||||
pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
|
||||
pthread_mutex_init(&_lock, &attr);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user