Skip to content
Snippets Groups Projects
Commit 13aad650 authored by Kaspar Schleiser's avatar Kaspar Schleiser
Browse files

tests: pthread_rwlock: vtimer -> xtimer

parent 096823e4
No related branches found
No related tags found
No related merge requests found
......@@ -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 \
......
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment