Skip to content

Commit

Permalink
Merge pull request #1801 from tyustli/tyustli_sem_reset
Browse files Browse the repository at this point in the history
[add] semaphore reset support for rt-thread
  • Loading branch information
hathach authored Dec 26, 2022
2 parents 4b58806 + e992ff4 commit 301b6af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/osal/osal_rtthread.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

//--------------------------------------------------------------------+
Expand Down

0 comments on commit 301b6af

Please sign in to comment.