kernel/work_q: Spinlockify
Each work_q object gets a separate spinlock to synchronize access instead of the global lock. Note that there was a recursive lock condition in k_delayed_work_cancel(), so that's been split out into an internal unlocked version and the API entry point that wraps it with a lock. Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
This commit is contained in:
parent
5aa7460e5c
commit
a37a981b21
3 changed files with 33 additions and 22 deletions
|
@ -34,5 +34,6 @@
|
|||
#include <arch/cpu.h>
|
||||
#include <misc/rb.h>
|
||||
#include <sys_clock.h>
|
||||
#include <spinlock.h>
|
||||
|
||||
#endif /* ZEPHYR_INCLUDE_KERNEL_INCLUDES_H_ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue