From 13aad6504978a6d044b434e69e4ef748989c5d24 Mon Sep 17 00:00:00 2001 From: Kaspar Schleiser <kaspar@schleiser.de> Date: Thu, 3 Sep 2015 21:36:13 +0200 Subject: [PATCH] tests: pthread_rwlock: vtimer -> xtimer --- tests/pthread_rwlock/Makefile | 4 +--- tests/pthread_rwlock/main.c | 4 ++-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/tests/pthread_rwlock/Makefile b/tests/pthread_rwlock/Makefile index 1630945c06..6004dc0db0 100644 --- a/tests/pthread_rwlock/Makefile +++ b/tests/pthread_rwlock/Makefile @@ -5,11 +5,9 @@ BOARD_BLACKLIST := arduino-mega2560 # arduino-mega2560: unknown type name: clockid_t USEMODULE += pthread -USEMODULE += vtimer +USEMODULE += xtimer USEMODULE += random -DISABLE_MODULE += auto_init - CFLAGS += -DNATIVE_AUTO_EXIT BOARD_INSUFFICIENT_MEMORY += chronos mbed_lpc1768 msb-430 msb-430h stm32f0discovery \ diff --git a/tests/pthread_rwlock/main.c b/tests/pthread_rwlock/main.c index 39045b9c67..b91f4d1b2a 100644 --- a/tests/pthread_rwlock/main.c +++ b/tests/pthread_rwlock/main.c @@ -34,7 +34,7 @@ #include "random.h" #include "sched.h" #include "thread.h" -#include "vtimer.h" +#include "xtimer.h" #define NUM_READERS_HIGH 2 #define NUM_READERS_LOW 3 @@ -60,7 +60,7 @@ static void do_sleep(int factor) { uint32_t timeout_us = (genrand_uint32() % 100000) * factor; /* PRINTF("sleep for % 8i µs.", timeout_us); */ - vtimer_usleep(timeout_us); + xtimer_usleep(timeout_us); } static void *writer(void *arg) -- GitLab