Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SWIFT
SWIFTsim
Commits
d3c5ab38
Commit
d3c5ab38
authored
May 27, 2013
by
Pedro Gonnet
Browse files
missed atomic_inc in space_addtask.
Former-commit-id: 6113c0ebcb030d3db5b06c5f04751f98251d272e
parent
4b5d1783
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/space.c
View file @
d3c5ab38
...
...
@@ -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. */
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment