mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-22 19:44:24 +08:00
semaphore结构中value仍改为uint16_t,加入对其设置范围的检测,加入对齐变量
This commit is contained in:
+2
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user