summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2022-12-26 13:09:47 +0700
committerGitHub <[email protected]>2022-12-26 13:09:47 +0700
commit301b6af6c6eab582ab027d5cc421eb9215833caf (patch)
tree49238e2899da941e63100596826f16c586c47631 /src
parent4b5880671ce20902a3ebd9c8cdb5a09b19754ae8 (diff)
parente992ff46d24984a8e1143d6d6c1c5aba8c93266f (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.h2
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);
}
//--------------------------------------------------------------------+