diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-11-06 13:42:49 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-11-06 13:42:49 +0000 |
commit | 13712e46ce30b5ad84a30994d03fedfbab2a3820 (patch) | |
tree | 6dcb70dd4e2f0252df93897ac2bbe9f5d7aa9296 /nuttx/sched/work_cancel.c | |
parent | 3cd0ce8e626ad57b2695899278c62c057bab05ef (diff) | |
download | px4-nuttx-13712e46ce30b5ad84a30994d03fedfbab2a3820.tar.gz px4-nuttx-13712e46ce30b5ad84a30994d03fedfbab2a3820.tar.bz2 px4-nuttx-13712e46ce30b5ad84a30994d03fedfbab2a3820.zip |
Fix a potential race condition
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2234 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/sched/work_cancel.c')
-rwxr-xr-x | nuttx/sched/work_cancel.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/nuttx/sched/work_cancel.c b/nuttx/sched/work_cancel.c index d3a79f0b6..92393dec3 100755 --- a/nuttx/sched/work_cancel.c +++ b/nuttx/sched/work_cancel.c @@ -79,7 +79,9 @@ * Name: work_cancel * * Description: - * Cancel previously queued work. + * Cancel previously queued work. This removes work from the work queue. + * After work has been canceled, it may be re-queue by calling work_queue() + * again. * * Input parameters: * work - The previously queue work structure to cancel |