Rev 2021 | Rev 2028 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 2021 | Rev 2022 | ||
|---|---|---|---|
| Line 117... | Line 117... | ||
| 117 | slab_print_list(); |
117 | slab_print_list(); |
| 118 | slab_cache_destroy(cache1); |
118 | slab_cache_destroy(cache1); |
| 119 | slab_cache_destroy(cache2); |
119 | slab_cache_destroy(cache2); |
| 120 | } |
120 | } |
| 121 | 121 | ||
| 122 | slab_cache_t *thr_cache; |
122 | static slab_cache_t *thr_cache; |
| 123 | semaphore_t thr_sem; |
123 | static semaphore_t thr_sem; |
| 124 | condvar_t thread_starter; |
124 | static condvar_t thread_starter; |
| 125 | mutex_t starter_mutex; |
125 | static mutex_t starter_mutex; |
| 126 | 126 | ||
| 127 | #define THREADS 8 |
127 | #define THREADS 8 |
| 128 | 128 | ||
| 129 | static void slabtest(void *priv) |
129 | static void slabtest(void *priv) |
| 130 | { |
130 | { |