Subversion Repositories HelenOS

Rev

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

Rev 2039 Rev 2040
Line 166... Line 166...
166
        mutex_unlock(&t->as->lock);
166
        mutex_unlock(&t->as->lock);
167
        as_destroy(t->as);
167
        as_destroy(t->as);
168
        /*
168
        /*
169
         * t->as is destroyed.
169
         * t->as is destroyed.
170
         */
170
         */
171
    } else {
171
    } else
172
        mutex_unlock(&t->as->lock);
172
        mutex_unlock(&t->as->lock);
173
    }
-
 
174
   
173
   
-
 
174
    btree_remove(&tasks_btree, (btree_key_t) t->taskid, NULL); 
175
    free(t);
175
    free(t);
176
    TASK = NULL;
176
    TASK = NULL;
177
}
177
}
178
 
178
 
179
/** Create new task with 1 thread and run it
179
/** Create new task with 1 thread and run it