Rev 2040 | Rev 2042 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 2040 | Rev 2041 | ||
|---|---|---|---|
| Line 169... | Line 169... | ||
| 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 | 173 | ||
| 174 | btree_remove(&tasks_btree, (btree_key_t) t->taskid, NULL); |
- | |
| 175 | free(t); |
174 | free(t); |
| 176 | TASK = NULL; |
175 | TASK = NULL; |
| 177 | } |
176 | } |
| 178 | 177 | ||
| 179 | /** Create new task with 1 thread and run it |
178 | /** Create new task with 1 thread and run it |