|
|
| version 1.6, 2012/03/13 10:01:59 | version 1.7, 2012/05/14 12:09:13 |
|---|---|
| Line 51 SUCH DAMAGE. | Line 51 SUCH DAMAGE. |
| inline sched_task_t * | inline sched_task_t * |
| _sched_useTask(sched_root_task_t * __restrict root) | _sched_useTask(sched_root_task_t * __restrict root) |
| { | { |
| sched_task_t *task; | sched_task_t *task, *tmp; |
| TAILQ_FOREACH(task, &root->root_unuse, task_node) { | TAILQ_FOREACH_SAFE(task, &root->root_unuse, task_node, tmp) { |
| if (!TASK_ISLOCKED(task)) { | if (!TASK_ISLOCKED(task)) { |
| #ifdef HAVE_LIBPTHREAD | #ifdef HAVE_LIBPTHREAD |
| pthread_mutex_lock(&root->root_mtx[taskUNUSE]); | pthread_mutex_lock(&root->root_mtx[taskUNUSE]); |