mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-07 05:27:24 +00:00
testing/ostest: make sure that pthread_rwlock timeout test is executed properly
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
This commit is contained in:
parent
2655f80dd7
commit
4159fa197b
1 changed files with 2 additions and 0 deletions
|
|
@ -327,6 +327,8 @@ static FAR void *timeout_thread2(FAR void *data)
|
|||
struct timespec time;
|
||||
int status;
|
||||
|
||||
pthread_yield();
|
||||
|
||||
status = clock_gettime(CLOCK_REALTIME, &time);
|
||||
time.tv_sec += 2;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue