<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>race condition in app_timer</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/3203/race-condition-in-app_timer</link><description>I&amp;#39;ve been looking at the app_timer source after an odd lockup I had. I think it has a race condition in it. 
 The code which adds events to the pending events list is usually called from user code. It mutates the list of events and then calls timer_list_handle_sched</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 05 Sep 2014 18:06:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/3203/race-condition-in-app_timer" /><item><title>RE: race condition in app_timer</title><link>https://devzone.nordicsemi.com/thread/11785?ContentTypeID=1</link><pubDate>Fri, 05 Sep 2014 18:06:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:507728b7-e0bd-4f12-8ce9-859dd305e251</guid><dc:creator>Rick Bronson</dc:creator><description>&lt;p&gt;Not sure if this is the same problem I&amp;#39;m seeing.  I have 6 timers with tick timeouts of 2000, 1000, 5000, 100, 5000, 30000.  The 1000 one sometimes gets called twice in a row with no delay.  If I change it to 999, it seems to work fine.  Seems like a race condition to me. See &lt;a href="http://members.efn.org/~rick/pub/main.c"&gt;members.efn.org/.../main.c&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>