diff options
| author | bernard.xiong <[email protected]> | 2009-10-09 23:58:46 +0000 |
|---|---|---|
| committer | bernard.xiong <[email protected]> | 2009-10-09 23:58:46 +0000 |
| commit | ff705032d81c65274c13ee9cb0d2a3e1d0026052 (patch) | |
| tree | 661d7230277c030c9602e6cc9fd3f3680e6385a2 /include | |
| parent | df1d469cd05809209b7795472adfb2eb4f9824ca (diff) | |
change semaphore and mutex value to unsigned value
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@84 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'include')
| -rw-r--r-- | include/rtdef.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/rtdef.h b/include/rtdef.h index 24d4bc8f02..5979b45404 100644 --- a/include/rtdef.h +++ b/include/rtdef.h @@ -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 |
