Browse Source

tests: pthread_rwlock: vtimer -> xtimer

dev/timer
Kaspar Schleiser 8 years ago
parent
commit
13aad65049
  1. 4
      tests/pthread_rwlock/Makefile
  2. 4
      tests/pthread_rwlock/main.c

4
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 \

4
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)

Loading…
Cancel
Save