Commit d3c5ab38 authored by Pedro Gonnet's avatar Pedro Gonnet
Browse files

missed atomic_inc in space_addtask.


Former-commit-id: 6113c0ebcb030d3db5b06c5f04751f98251d272e
parent 4b5d1783
......@@ -827,8 +827,7 @@ struct task *space_addtask ( struct space *s , int type , int subtype , int flag
/* Add an index for it. */
// lock_lock( &s->lock );
s->tasks_ind[ s->nr_tasks ] = ind;
s->nr_tasks += 1;
s->tasks_ind[ atomic_inc( s->nr_tasks ) ] = ind;
// lock_unlock_blind( &s->lock );
/* Return a pointer to the new task. */
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment