semaphore结构中value仍改为uint16_t,加入对其设置范围的检测,加入对齐变量

This commit is contained in:
shaojinchun
2019-04-24 09:14:00 +08:00
parent fa697a763f
commit 7bcee9bcb1
2 changed files with 5 additions and 2 deletions
+2 -1
View File
@@ -655,7 +655,8 @@ struct rt_semaphore
{
struct rt_ipc_object parent; /**< inherit from ipc_object */
rt_uint32_t value; /**< value of semaphore. */
rt_uint16_t value; /**< value of semaphore. */
rt_uint16_t reserved; /**< reserved field */
};
typedef struct rt_semaphore *rt_sem_t;
#endif