mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 09:22:18 +00:00
px4_work_queue: sem_wait add loop as the wait may be interrupted by a signal
This commit is contained in:
@@ -149,7 +149,8 @@ void
|
||||
WorkQueue::Run()
|
||||
{
|
||||
while (!should_exit()) {
|
||||
px4_sem_wait(&_process_lock);
|
||||
// loop as the wait may be interrupted by a signal
|
||||
do {} while (px4_sem_wait(&_process_lock) != 0);
|
||||
|
||||
work_lock();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user