Subversion Repositories HelenOS-historic

Rev

Rev 1658 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1658 Rev 1666
Line 145... Line 145...
145
        data = new;
145
        data = new;
146
    }
146
    }
147
    printf("Thread #%d releasing...\n", THREAD->tid);
147
    printf("Thread #%d releasing...\n", THREAD->tid);
148
    while (data) {
148
    while (data) {
149
        new = *((void **)data);
149
        new = *((void **)data);
-
 
150
        *((void **)data) = NULL;
150
        slab_free(thr_cache, data);
151
        slab_free(thr_cache, data);
151
        data = new;
152
        data = new;
152
    }
153
    }
153
    printf("Thread #%d allocating...\n", THREAD->tid);
154
    printf("Thread #%d allocating...\n", THREAD->tid);
154
    while (1) {
155
    while (1) {
Line 160... Line 161...
160
        data = new;
161
        data = new;
161
    }
162
    }
162
    printf("Thread #%d releasing...\n", THREAD->tid);
163
    printf("Thread #%d releasing...\n", THREAD->tid);
163
    while (data) {
164
    while (data) {
164
        new = *((void **)data);
165
        new = *((void **)data);
-
 
166
        *((void **)data) = NULL;
165
        slab_free(thr_cache, data);
167
        slab_free(thr_cache, data);
166
        data = new;
168
        data = new;
167
    }
169
    }
168
 
170
 
169
 
171