diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-06-03 10:25:00 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-06-03 10:25:00 +0000 |
commit | ef5e7d866967762dd8c41874b03fc7ceab3c7060 (patch) | |
tree | b8f01c5fcd87262b029c31ca881f3a2a718cee49 /nuttx/sched | |
parent | 990883c019f29da8dbcd41d3310116923a95b71c (diff) | |
download | px4-nuttx-ef5e7d866967762dd8c41874b03fc7ceab3c7060.tar.gz px4-nuttx-ef5e7d866967762dd8c41874b03fc7ceab3c7060.tar.bz2 px4-nuttx-ef5e7d866967762dd8c41874b03fc7ceab3c7060.zip |
Add comments
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@769 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/sched')
-rw-r--r-- | nuttx/sched/timer_release.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nuttx/sched/timer_release.c b/nuttx/sched/timer_release.c index 93ea686c5..83f86954b 100644 --- a/nuttx/sched/timer_release.c +++ b/nuttx/sched/timer_release.c @@ -134,6 +134,10 @@ int timer_release(FAR struct posix_timer_s *timer) return -EINVAL; } + /* Release one reference to timer. Don't delete the timer until the count + * would decrement to zero. + */ + if (timer->pt_crefs > 1) { timer->pt_crefs--; |