Home
last modified time | relevance | path

Searched refs:next_time (Results 1 – 7 of 7) sorted by relevance

/hal_rpi_pico-latest/src/rp2_common/pico_async_context/
Dasync_context_base.c64 if (absolute_time_diff_us((*prev)->next_time, earliest) >= 0) { in async_context_base_remove_ready_at_time_worker()
65 earliest = (*prev)->next_time; in async_context_base_remove_ready_at_time_worker()
85 if (absolute_time_diff_us(worker->next_time, earliest) > 0) { in async_context_base_refresh_next_timeout()
86 earliest = worker->next_time; in async_context_base_refresh_next_timeout()
90 self->next_time = earliest; in async_context_base_refresh_next_timeout()
105 return self->next_time; in async_context_base_execute_once()
112 if (absolute_time_diff_us(worker->next_time, now) >= 0) { in async_context_base_needs_servicing()
Dasync_context_poll.c43 absolute_time_t next_time = self_base->next_time; in async_context_poll_wait_for_work_until() local
45 sem_acquire_block_until(&self->sem, absolute_time_min(next_time, until)); in async_context_poll_wait_for_work_until()
Dasync_context_threadsafe_background.c251 absolute_time_t next_time = async_context_base_execute_once(&self->core); in process_under_lock() local
253 if (absolute_time_diff_us(get_absolute_time(), next_time) <= 0) continue; in process_under_lock()
255 if (is_at_the_end_of_time(next_time)) { in process_under_lock()
271 … if (self->alarm_pending && absolute_time_diff_us(self->last_set_alarm_time, next_time) > 0) break; in process_under_lock()
274 self->last_set_alarm_time = next_time; in process_under_lock()
276 … self->alarm_id = alarm_pool_add_alarm_at(self->alarm_pool, next_time, alarm_handler, self, false); in process_under_lock()
Dasync_context_freertos.c49 absolute_time_t next_time = async_context_base_execute_once(&self->core); in process_under_lock() local
51 if (is_at_the_end_of_time(next_time)) { in process_under_lock()
54 ticks = sensible_ticks_until(next_time); in process_under_lock()
/hal_rpi_pico-latest/src/rp2_common/pico_async_context/include/pico/
Dasync_context.h108 absolute_time_t next_time; member
183 absolute_time_t next_time; member
295 worker->next_time = at; in async_context_add_at_time_worker_at()
316 worker->next_time = make_timeout_time_ms(ms); in async_context_add_at_time_worker_in_ms()
/hal_rpi_pico-latest/src/rp2_common/pico_lwip/
Dlwip_nosys.c37 lwip_timeout_worker.next_time = at_the_end_of_time; in update_next_timeout()
39 lwip_timeout_worker.next_time = make_timeout_time_ms(sleep_ms); in update_next_timeout()
/hal_rpi_pico-latest/src/common/pico_time/
Dtime.c183 int64_t next_time; in alarm_pool_irq_handler() local
186 next_time = earliest_target - delta; in alarm_pool_irq_handler()
189 next_time = (int64_t) ta_time_us_64(timer) + delta; in alarm_pool_irq_handler()
191 earliest_entry->target = next_time; in alarm_pool_irq_handler()
193 … if (earliest_entry->next >= 0 && next_time - pool->entries[earliest_entry->next].target >= 0) { in alarm_pool_irq_handler()
198 while (*prev >= 0 && (next_time - pool->entries[*prev].target) >= 0) { in alarm_pool_irq_handler()