diff options
| author | Ha Thach <[email protected]> | 2022-12-26 13:09:47 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-12-26 13:09:47 +0700 |
| commit | 301b6af6c6eab582ab027d5cc421eb9215833caf (patch) | |
| tree | 49238e2899da941e63100596826f16c586c47631 /src | |
| parent | 4b5880671ce20902a3ebd9c8cdb5a09b19754ae8 (diff) | |
| parent | e992ff46d24984a8e1143d6d6c1c5aba8c93266f (diff) | |
Merge pull request #1801 from tyustli/tyustli_sem_reset
[add] semaphore reset support for rt-thread
Diffstat (limited to 'src')
| -rw-r--r-- | src/osal/osal_rtthread.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/osal/osal_rtthread.h b/src/osal/osal_rtthread.h index f8452bfb2..18eb9c693 100644 --- a/src/osal/osal_rtthread.h +++ b/src/osal/osal_rtthread.h @@ -63,7 +63,7 @@ TU_ATTR_ALWAYS_INLINE static inline bool osal_semaphore_wait(osal_semaphore_t se } TU_ATTR_ALWAYS_INLINE static inline void osal_semaphore_reset(osal_semaphore_t const sem_hdl) { - // TODO: implement + rt_sem_control(sem_hdl, RT_IPC_CMD_RESET, 0); } //--------------------------------------------------------------------+ |
