/kernel/trunk/test/synch/rwlock4/test.c |
---|
39,6 → 39,7 |
#include <synch/waitq.h> |
#include <synch/rwlock.h> |
#include <synch/synch.h> |
#include <synch/spinlock.h> |
#define READERS 50 |
#define WRITERS 50 |
45,7 → 46,7 |
static rwlock_t rwlock; |
static spinlock_t lock; |
SPINLOCK_INITIALIZE(lock); |
static waitq_t can_start; |
/kernel/trunk/test/synch/semaphore2/test.c |
---|
37,10 → 37,11 |
#include <synch/waitq.h> |
#include <synch/semaphore.h> |
#include <synch/synch.h> |
#include <synch/spinlock.h> |
static semaphore_t sem; |
static spinlock_t lock; |
SPINLOCK_INITIALIZE(lock); |
static waitq_t can_start; |