Rev 534 | Rev 625 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 534 | Rev 623 | ||
|---|---|---|---|
| Line 37... | Line 37... | ||
| 37 | #include <panic.h> |
37 | #include <panic.h> |
| 38 | 38 | ||
| 39 | #include <synch/waitq.h> |
39 | #include <synch/waitq.h> |
| 40 | #include <synch/rwlock.h> |
40 | #include <synch/rwlock.h> |
| 41 | #include <synch/synch.h> |
41 | #include <synch/synch.h> |
| - | 42 | #include <synch/spinlock.h> |
|
| 42 | 43 | ||
| 43 | #define READERS 50 |
44 | #define READERS 50 |
| 44 | #define WRITERS 50 |
45 | #define WRITERS 50 |
| 45 | 46 | ||
| 46 | static rwlock_t rwlock; |
47 | static rwlock_t rwlock; |
| 47 | 48 | ||
| 48 | static spinlock_t lock; |
49 | SPINLOCK_INITIALIZE(lock); |
| 49 | 50 | ||
| 50 | static waitq_t can_start; |
51 | static waitq_t can_start; |
| 51 | 52 | ||
| 52 | __u32 seed = 0xdeadbeef; |
53 | __u32 seed = 0xdeadbeef; |
| 53 | 54 | ||