Skip to content
Commit d7049b57 authored by Peter Bigot's avatar Peter Bigot Committed by Anas Nashif
Browse files

samples: microbit: pong: update work API usage



Use the reschedule solution as there may be cases where a newer
deadline should supersede an older one.

The implementation has no locking and so has data races between the
handler and external events.  Emit a console diagnostic in one case
where the race can be detected.

Signed-off-by: default avatarPeter Bigot <peter.bigot@nordicsemi.no>
parent c960aa47
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment