mirror of
https://github.com/apache/nuttx.git
synced 2026-10-06 13:55:15 +00:00
misc/assert: add backtrace dump support for mutex hold task
Signed-off-by: fangpeina <fangpeina@xiaomi.com>
This commit is contained in:
parent
f7f8f6c104
commit
b5145c528e
4 changed files with 91 additions and 26 deletions
|
|
@ -49,6 +49,9 @@ struct mutex_s
|
|||
{
|
||||
sem_t sem;
|
||||
pid_t holder;
|
||||
#if CONFIG_LIBC_MUTEX_BACKTRACE > 0
|
||||
FAR void *backtrace[CONFIG_LIBC_MUTEX_BACKTRACE];
|
||||
#endif
|
||||
};
|
||||
|
||||
typedef struct mutex_s mutex_t;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue