mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
ostest/spinlock: Check the return value.
This commit added checking for the return value. Signed-off-by: anpeiyun <anpeiyun@xiaomi.com>
This commit is contained in:
parent
f86246f7c6
commit
52c2a8909b
1 changed files with 5 additions and 1 deletions
|
|
@ -149,7 +149,11 @@ static inline void run_test_thread(
|
|||
{
|
||||
param[i].pub = &pub;
|
||||
param[i].delta = 0;
|
||||
pthread_create(&tid[i], NULL, thread_func, ¶m[i]);
|
||||
ret = pthread_create(&tid[i], NULL, thread_func, ¶m[i]);
|
||||
if (ret != 0)
|
||||
{
|
||||
ASSERT(false);
|
||||
}
|
||||
}
|
||||
|
||||
ret = pthread_barrier_wait(&pub.barrier);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue