-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drivers/pipes: using rmutex to protect pipe and avoid deadlock
nxsem_wait nuttx/sched/semaphore/sem_wait.c:176 nxmutex_lock nuttx/libs/libc/misc/lib_mutex.c:204 (discriminator 2) pipecommon_write nuttx/drivers/pipes/pipe_common.c:538 (discriminator 2) file_write nuttx/fs/vfs/fs_write.c:91 write nuttx/include/unistd.h:523 (discriminator 2) nxsig_deliver nuttx/sched/signal/sig_deliver.c:170 (discriminator 4) arm_sigdeliver nuttx/arch/arm/src/armv7-a/arm_sigdeliver.c:107 irq_waitlock nuttx/sched/irq/irq_csection.c:204 nxsem_post nuttx/sched/semaphore/sem_post.c:86 (discriminator 2) nxmutex_unlock nuttx/libs/libc/misc/lib_mutex.c:339 (discriminator 2) pipecommon_poll nuttx/drivers/pipes/pipe_common.c:769 file_poll nuttx/fs/vfs/fs_poll.c:321 poll_fdsetup nuttx/fs/vfs/fs_poll.c:194 poll nuttx/include/sys/poll.h:164 uv_run apps/system/libuv/libuv/src/unix/core.c:449 adb_hal_run apps/system/adb/microADB/hal/hal_uv.c:76 adbd_main apps/system/adb/adb_main.c:157 nxtask_startup nuttx/libs/libc/sched/task_startup.c:70 (discriminator 2) nxtask_start nuttx/sched/task/task_start.c:134 Signed-off-by: dongjiuzhu1 <[email protected]>
- Loading branch information
1 parent
786dabf
commit 0fb1dc2
Showing
2 changed files
with
38 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters