diff options
| author | xqyjlj <[email protected]> | 2024-01-05 17:03:55 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-01-05 17:03:55 +0800 |
| commit | 6b6d39d716b21c9f4b72641a0ad3e44685e7bb19 (patch) | |
| tree | db6c36dd6f5b736d126a13a2f594ee0b3abfe567 /include | |
| parent | db2cfd335f65e4f3a35121d67c6da62bb23d2e60 (diff) | |
✨ feat: delete thread ref (#8456)
Diffstat (limited to 'include')
| -rw-r--r-- | include/rtdef.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/include/rtdef.h b/include/rtdef.h index a13d8b782b..0e3601090a 100644 --- a/include/rtdef.h +++ b/include/rtdef.h @@ -1127,7 +1127,6 @@ struct rt_thread #endif #endif - rt_atomic_t ref_count; struct rt_spinlock spinlock; rt_ubase_t user_data; /**< private user data beyond this thread */ }; @@ -1139,11 +1138,6 @@ typedef struct rt_thread *rt_thread_t; /**@}*/ -#define rt_atomic_inc(v) rt_atomic_add((v), 1) -#define rt_atomic_dec(v) rt_atomic_sub((v), 1) -#define rt_get_thread_struct(object) do { rt_atomic_inc(&(object)->ref_count); } while(0) -#define rt_put_thread_struct(object) do { rt_atomic_dec(&(object)->ref_count); } while(0) - /** * @addtogroup IPC */ |
