change semaphore and mutex value to unsigned value

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@84 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
bernard.xiong
2009-10-09 23:58:46 +00:00
parent df1d469cd0
commit ff705032d8
2 changed files with 27 additions and 35 deletions

View File

@@ -397,7 +397,7 @@ struct rt_semaphore
{
struct rt_ipc_object parent;
rt_base_t value; /* value of semaphore. */
rt_ubase_t value; /* value of semaphore. */
};
typedef struct rt_semaphore* rt_sem_t;
#endif
@@ -410,12 +410,12 @@ struct rt_mutex
{
struct rt_ipc_object parent;
rt_base_t value; /* value of mutex. */
rt_ubase_t value; /* value of mutex. */
struct rt_thread* owner; /* current owner of mutex. */
rt_uint8_t original_priority; /* priority of last thread hold the mutex. */
rt_base_t hold; /* numbers of thread hold the mutex. Only 0 or 1 is legal. */
rt_ubase_t hold; /* numbers of thread hold the mutex. */
};
typedef struct rt_mutex* rt_mutex_t;
#endif