[riot-notifications] [RIOT-OS/RIOT] xtimer: Add xtimer_periodic_msg (#7496)

Joakim NohlgÄrd notifications at github.com
Sat Sep 9 01:04:51 CEST 2017


gebart commented on this pull request.



> -        mutex_lock(&mutex);
-    }
-out:
+        else {
+            if (offset < XTIMER_PERIODIC_RELATIVE) {
+                /* NB: This will overshoot the target by the amount of time it took
+                * to get here from the beginning of xtimer_periodic_wakeup()
+                *
+                * Since interrupts are normally enabled inside this function, this time may
+                * be undeterministic. */
+                target = _xtimer_now() + offset;
+            }
+            DEBUG("xps, abs: %" PRIu32 "\n", target);
+            _xtimer_set_absolute(timer, target);
+        }
+    } while (0);

So that the break replaces the goto

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/7496#discussion_r137906478
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20170908/9b545877/attachment.html>


More information about the notifications mailing list