From 3cce52e3615f20e6e9fac4a1b64e670e24d51253 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Tue, 22 Nov 2016 08:02:30 -0600 Subject: [PATCH] Update comments. --- examples/timer/timer_main.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/examples/timer/timer_main.c b/examples/timer/timer_main.c index de2be590c..5e79e5d79 100644 --- a/examples/timer/timer_main.c +++ b/examples/timer/timer_main.c @@ -89,6 +89,15 @@ static volatile unsigned long g_nsignals; static void timer_sighandler(int signo, FAR siginfo_t *siginfo, FAR void *context) { + /* Does nothing in this example except for increment a count of signals + * received. + * + * NOTE: The use of signal handler is not recommended if you are concerned + * about the signal latency. Instead, a dedicated, high-priority thread + * that waits on sigwaitinfo() is recommended. High priority is required + * if you want a deterministic wake-up time when the signal occurs. + */ + g_nsignals++; }