Rev 1062 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1062 | Rev 1658 | ||
---|---|---|---|
Line 110... | Line 110... | ||
110 | 110 | ||
111 | static void slabtest(void *data) |
111 | static void slabtest(void *data) |
112 | { |
112 | { |
113 | int offs = (int)(__native) data; |
113 | int offs = (int)(__native) data; |
114 | int i,j; |
114 | int i,j; |
- | 115 | ||
- | 116 | thread_detach(THREAD); |
|
115 | 117 | ||
116 | printf("Starting thread #%d...\n",THREAD->tid); |
118 | printf("Starting thread #%d...\n",THREAD->tid); |
117 | for (j=0; j<10; j++) { |
119 | for (j=0; j<10; j++) { |
118 | for (i=0; i<THR_MEM_COUNT; i++) |
120 | for (i=0; i<THR_MEM_COUNT; i++) |
119 | thr_data[offs][i] = slab_alloc(thr_cache,0); |
121 | thr_data[offs][i] = slab_alloc(thr_cache,0); |
120 | for (i=0; i<THR_MEM_COUNT/2; i++) |
122 | for (i=0; i<THR_MEM_COUNT/2; i++) |