mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-09-12 05:30:22 +00:00
ostest: rwlock need to be destroy
Signed-off-by: hujun5 <hujun5@xiaomi.com>
This commit is contained in:
parent
44e5a5ecd7
commit
dd20ae28cb
1 changed files with 3 additions and 0 deletions
|
|
@ -257,6 +257,9 @@ static void test_timeout(void)
|
|||
}
|
||||
#endif /* CONFIG_CANCELLATION_POINTS */
|
||||
#endif /* CONFIG_PTHREAD_CLEANUP */
|
||||
|
||||
pthread_rwlock_destroy(&write_lock);
|
||||
pthread_rwlock_destroy(&read_lock);
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue