File tree Expand file tree Collapse file tree 2 files changed +380
-147
lines changed Expand file tree Collapse file tree 2 files changed +380
-147
lines changed Original file line number Diff line number Diff line change @@ -1059,16 +1059,20 @@ struct rt_mutex
1059
1059
{
1060
1060
struct rt_ipc_object parent ; /**< inherit from ipc_object */
1061
1061
1062
+ /* not used in RT_MUTEX_NO_PI mutex */
1062
1063
rt_uint8_t ceiling_priority ; /**< the priority ceiling of mutexe */
1063
1064
rt_uint8_t priority ; /**< the maximal priority for pending thread */
1065
+
1064
1066
rt_uint8_t hold ; /**< numbers of thread hold the mutex */
1065
- rt_uint8_t reserved ; /**< reserved field */
1067
+ rt_uint8_t flag ; /**< flag of mutex */
1066
1068
1067
1069
struct rt_thread * owner ; /**< current owner of mutex */
1068
1070
rt_list_t taken_list ; /**< the object list taken by thread */
1069
1071
struct rt_spinlock spinlock ;
1070
1072
};
1071
1073
typedef struct rt_mutex * rt_mutex_t ;
1074
+
1075
+ #define RT_MUTEX_NO_PI 0x02
1072
1076
#endif /* RT_USING_MUTEX */
1073
1077
1074
1078
/**@}*/
You can’t perform that action at this time.
0 commit comments