From ef5e7d866967762dd8c41874b03fc7ceab3c7060 Mon Sep 17 00:00:00 2001 From: patacongo Date: Tue, 3 Jun 2008 10:25:00 +0000 Subject: Add comments git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@769 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/sched/timer_release.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'nuttx/sched/timer_release.c') 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--; -- cgit v1.2.3