File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ bool sem_acquire_timeout_us(semaphore_t *sem, uint32_t timeout_us);
120120 * \return true if permit was acquired, false if the until time was reached before
121121 * acquiring.
122122 */
123- bool sem_acquire_until (semaphore_t * sem , absolute_time_t until );
123+ bool sem_acquire_block_until (semaphore_t * sem , absolute_time_t until );
124124
125125#ifdef __cplusplus
126126}
Original file line number Diff line number Diff line change @@ -31,14 +31,14 @@ void __time_critical_func(sem_acquire_blocking)(semaphore_t *sem) {
3131}
3232
3333bool __time_critical_func (sem_acquire_timeout_ms )(semaphore_t * sem , uint32_t timeout_ms ) {
34- return sem_acquire_until (sem , make_timeout_time_ms (timeout_ms ));
34+ return sem_acquire_block_until (sem , make_timeout_time_ms (timeout_ms ));
3535}
3636
3737bool __time_critical_func (sem_acquire_timeout_us )(semaphore_t * sem , uint32_t timeout_us ) {
38- return sem_acquire_until (sem , make_timeout_time_us (timeout_us ));
38+ return sem_acquire_block_until (sem , make_timeout_time_us (timeout_us ));
3939}
4040
41- bool __time_critical_func (sem_acquire_until )(semaphore_t * sem , absolute_time_t until ) {
41+ bool __time_critical_func (sem_acquire_block_until )(semaphore_t * sem , absolute_time_t until ) {
4242 do {
4343 uint32_t save = spin_lock_blocking (sem -> core .spin_lock );
4444 if (sem -> permits > 0 ) {
You can’t perform that action at this time.
0 commit comments