summaryrefslogtreecommitdiff
path: root/include/rtdef.h
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2022-10-16 17:58:51 +0800
committerBernard Xiong <[email protected]>2022-10-16 17:58:51 +0800
commit6823a5110b71d36caa21bab389656d463c863db7 (patch)
tree6beed38527a6b0f98b4db3339cfaf78dc1286b0b /include/rtdef.h
parent34c77da153319da3225bd2064333b34942fee933 (diff)
[Kernel] Add prioceiling feature in mutex
Diffstat (limited to 'include/rtdef.h')
-rw-r--r--include/rtdef.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/rtdef.h b/include/rtdef.h
index 12232c2d5c..57401115d9 100644
--- a/include/rtdef.h
+++ b/include/rtdef.h
@@ -771,11 +771,13 @@ struct rt_mutex
{
struct rt_ipc_object parent; /**< inherit from ipc_object */
+ rt_uint8_t ceiling_priority; /**< the priority ceiling of mutexe */
rt_uint8_t priority; /**< the maximal priority for pending thread */
rt_uint8_t hold; /**< numbers of thread hold the mutex */
+ rt_uint8_t reserv;
struct rt_thread *owner; /**< current owner of mutex */
- rt_list_t taken_list; /**< the object list taken by thread */
+ rt_list_t taken_list; /**< the object list taken by thread */
};
typedef struct rt_mutex *rt_mutex_t;
#endif /* RT_USING_MUTEX */