Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
NuttX RTOS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
f4grx
NuttX RTOS
Commits
a813baef
Commit
a813baef
authored
9 years ago
by
Gregory Nutt
Browse files
Options
Downloads
Patches
Plain Diff
User workqueue, cosmetic changes
parent
ff67c076
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
libc/wqueue/work_cancel.c
+5
-3
5 additions, 3 deletions
libc/wqueue/work_cancel.c
sched/wqueue/kwork_cancel.c
+1
-1
1 addition, 1 deletion
sched/wqueue/kwork_cancel.c
with
6 additions
and
4 deletions
libc/wqueue/work_cancel.c
+
5
−
3
View file @
a813baef
...
...
@@ -110,11 +110,13 @@ static int work_qcancel(FAR struct usr_wqueue_s *wqueue, FAR struct work_s *work
{
/* A little test of the integrity of the work queue */
DEBUGASSERT
(
work
->
dq
.
flink
||
(
FAR
dq_entry_t
*
)
work
==
wqueue
->
q
.
tail
);
DEBUGASSERT
(
work
->
dq
.
blink
||
(
FAR
dq_entry_t
*
)
work
==
wqueue
->
q
.
head
);
DEBUGASSERT
(
work
->
dq
.
flink
!=
NULL
||
(
FAR
dq_entry_t
*
)
work
==
wqueue
->
q
.
tail
);
DEBUGASSERT
(
work
->
dq
.
blink
!=
NULL
||
i
(
FAR
dq_entry_t
*
)
work
==
wqueue
->
q
.
head
);
/* Remove the entry from the work queue and make sure that it is
* mark as available (i.e., the worker field is nullified).
* mark
ed
as available (i.e., the worker field is nullified).
*/
dq_rem
((
FAR
dq_entry_t
*
)
work
,
&
wqueue
->
q
);
...
...
This diff is collapsed.
Click to expand it.
sched/wqueue/kwork_cancel.c
+
1
−
1
View file @
a813baef
...
...
@@ -115,7 +115,7 @@ static int work_qcancel(FAR struct kwork_wqueue_s *wqueue,
(
FAR
dq_entry_t
*
)
work
==
wqueue
->
q
.
head
);
/* Remove the entry from the work queue and make sure that it is
* mark as available (i.e., the worker field is nullified).
* mark
ed
as available (i.e., the worker field is nullified).
*/
dq_rem
((
FAR
dq_entry_t
*
)
work
,
&
wqueue
->
q
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment