#include <I_PriorityEventQueue.h>
Public Member Functions | |
Que (Event, link) after[N_PQ_LIST] | |
void | enqueue (Event *e, ink_hrtime now) |
void | remove (Event *e) |
Event * | dequeue_ready (ink_hrtime t) |
void | check_ready (ink_hrtime now, EThread *t) |
ink_hrtime | earliest_timeout () |
PriorityEventQueue () | |
Data Fields | |
ink_hrtime | last_check_time |
uint32_t | last_check_buckets |
Definition at line 37 of file I_PriorityEventQueue.h.
PriorityEventQueue::PriorityEventQueue | ( | ) |
Definition at line 26 of file PQ-List.cc.
References ink_get_based_hrtime_internal(), last_check_buckets, last_check_time, and PQ_BUCKET_TIME.
void PriorityEventQueue::check_ready | ( | ink_hrtime | now, | |
EThread * | t | |||
) |
Definition at line 33 of file PQ-List.cc.
References Action::cancelled, EVENT_FREE, eventAllocator, Event::in_heap, Event::in_the_priority_queue, last_check_buckets, last_check_time, N_PQ_LIST, PQ_BUCKET_TIME, Que(), and Event::timeout_at.
Referenced by EThread::execute().
Event* PriorityEventQueue::dequeue_ready | ( | ink_hrtime | t | ) | [inline] |
Definition at line 100 of file I_PriorityEventQueue.h.
References Event::in_the_priority_queue, and ink_assert.
Referenced by EThread::execute().
ink_hrtime PriorityEventQueue::earliest_timeout | ( | ) | [inline] |
Definition at line 113 of file I_PriorityEventQueue.h.
References last_check_time, and PQ_BUCKET_TIME.
Referenced by EThread::execute().
void PriorityEventQueue::enqueue | ( | Event * | e, | |
ink_hrtime | now | |||
) | [inline] |
Definition at line 44 of file I_PriorityEventQueue.h.
References Event::in_heap, Event::in_the_priority_queue, PQ_BUCKET_TIME, and Event::timeout_at.
Referenced by EThread::execute().
PriorityEventQueue::Que | ( | Event | , | |
link | ||||
) |
Referenced by check_ready().
void PriorityEventQueue::remove | ( | Event * | e | ) | [inline] |
Definition at line 93 of file I_PriorityEventQueue.h.
References ink_assert.
Referenced by Event::schedule_at(), Event::schedule_every(), Event::schedule_imm(), and Event::schedule_in().
Definition at line 42 of file I_PriorityEventQueue.h.
Referenced by check_ready(), and PriorityEventQueue().
Definition at line 41 of file I_PriorityEventQueue.h.
Referenced by check_ready(), earliest_timeout(), and PriorityEventQueue().