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

kernel: work: fix schedule from running work



k_work_schedule() is supposed to be a no-op if the work item is
already scheduled or submitted: the previous schedule is left
unchanged.  The check incorrectly inhibited the schedule operation
when the work item was neither scheduled nor submitted, but was
running.

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