Subversion Repositories HelenOS-historic

Compare Revisions

Ignore whitespace Rev 1061 → Rev 1062

/kernel/trunk/test/mm/falloc2/test.c
44,12 → 44,12
#define THREAD_RUNS 1
#define THREADS 8
 
static void thread(void * arg);
static void falloc(void * arg);
static void failed(void);
 
static atomic_t thread_count;
 
void thread(void * arg)
void falloc(void * arg)
{
int status, order, run, allocated, i;
__u8 val = THREAD->tid % THREADS;
107,7 → 107,7
for (i = 0; i < THREADS; i++) {
thread_t * thrd;
thrd = thread_create(thread, NULL, TASK, 0);
thrd = thread_create(falloc, NULL, TASK, 0, "falloc");
if (thrd)
thread_ready(thrd);
else
/kernel/trunk/test/mm/slab1/test.c
108,7 → 108,7
slab_cache_t *thr_cache;
semaphore_t thr_sem;
 
static void thread(void *data)
static void slabtest(void *data)
{
int offs = (int)(__native) data;
int i,j;
138,7 → 138,7
SLAB_CACHE_NOMAGAZINE);
semaphore_initialize(&thr_sem,0);
for (i=0; i<THREADS; i++) {
if (!(t = thread_create(thread, (void *)(__native)i, TASK, 0)))
if (!(t = thread_create(slabtest, (void *)(__native)i, TASK, 0, "slabtest")))
panic("could not create thread\n");
thread_ready(t);
}
/kernel/trunk/test/mm/slab2/test.c
122,7 → 122,7
 
#define THREADS 8
 
static void thread(void *priv)
static void slabtest(void *priv)
{
void *data=NULL, *new;
 
188,7 → 188,7
0);
semaphore_initialize(&thr_sem,0);
for (i=0; i<THREADS; i++) {
if (!(t = thread_create(thread, NULL, TASK, 0)))
if (!(t = thread_create(slabtest, NULL, TASK, 0, "slabtest")))
panic("could not create thread\n");
thread_ready(t);
}