From e14188b4a1f742d206d31f7abc3f0dd9d5cae8d4 Mon Sep 17 00:00:00 2001 From: patacongo Date: Tue, 3 Jun 2008 10:25:00 +0000 Subject: [PATCH] Add comments git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@769 42af7a65-404d-4744-a932-0658087f49c3 --- sched/timer_release.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sched/timer_release.c b/sched/timer_release.c index 93ea686c596..83f86954b14 100644 --- a/sched/timer_release.c +++ b/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--;