kernel/mbox: Spinlockify

Straightforward per-struct-k_mbox lock.  Nothing changes in locking
strategy.

Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
This commit is contained in:
Andy Ross 2018-07-25 15:06:24 -07:00 committed by Anas Nashif
commit 9eeb6b8779
2 changed files with 15 additions and 15 deletions

View file

@ -3449,6 +3449,7 @@ struct k_mbox_msg {
struct k_mbox {
_wait_q_t tx_msg_queue;
_wait_q_t rx_msg_queue;
struct k_spinlock lock;
_OBJECT_TRACING_NEXT_PTR(k_mbox)
};