[
https://issues.apache.org/jira/browse/TS-1774?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14379435#comment-14379435
]
bwahn commented on TS-1774:
---------------------------
I think that ink_get_hrtime() function move inside Thread as below :
class Thread
{
...
ink_hrtime ink_get_hrtime();
ink_hrtime ink_get_based_hrtime();
};
But, In P_UnixEventProcessor.h, schedule_in() use ink_get_based_hrtime().
I'm thinking that ink_get_based_hrtime() is a one of EThread
*all_dthreads[MAX_EVENT_THREADS];
{code}
TS_INLINE Event *
EventProcessor::schedule_in(Continuation *cont, ink_hrtime t, EventType et, int
callback_event, void *cookie)
{
Event *e = eventAllocator.alloc();
ink_assert(et < MAX_EVENT_TYPES);
e->callback_event = callback_event;
e->cookie = cookie;
return schedule(e->init(cont, ink_get_based_hrtime() + t, 0), et);
}
{code}
[~amc], [~zwoop], Do you have a idea?
> Make ink_hrtime_get() in Thread.cc member of the Thread class
> -------------------------------------------------------------
>
> Key: TS-1774
> URL: https://issues.apache.org/jira/browse/TS-1774
> Project: Traffic Server
> Issue Type: Improvement
> Components: Core
> Reporter: Leif Hedstrom
> Labels: newbie
> Fix For: 6.0.0
>
>
> It's somewhat confusing that e..g ink_get_hrtime() is not a member of the
> Thread class, yet, relies on Thread::cur_time. Why is that ?
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)