commit | aea9d35c4eab5b57bba26a01e0f9091ed2cdbcac | [log] [tgz] |
---|---|---|
author | Peter Bigot <peter.bigot@nordicsemi.no> | Mon Apr 20 10:52:25 2020 -0500 |
committer | Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no> | Tue Apr 21 11:19:29 2020 +0200 |
tree | 739e782358acefb51b56a8cb162a907e7bb206aa | |
parent | c97f6f8eeb06c20c75b2c9a7690d9c58f3ea07af [diff] |
kernel: fix runtime initialization of k_pipe object Runtime initialization failed to reset the lock field, causing problems when the pipe object is located on a stack and passed by reference to other code. Lacking an API for initializing a spinlock by itself use the idiom from _K_PIPE_INITIALIZER(). To simplify maintainability the initialization order is changed slightly to match the structure field declaration order. Signed-off-by: Peter Bigot <peter.bigot@nordicsemi.no>