mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-17 15:32:21 +08: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:

committed by
Alin Jerpelea

parent
2655f80dd7
commit
4159fa197b
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user