#include <Prefetch.h>
Inherits Continuation.
Public Member Functions | |
KeepAliveLockHandler () | |
void | init (IpEndpoint const &xip, MIOBuffer *xbuf, IOBufferReader *xreader) |
~KeepAliveLockHandler () | |
int | handleEvent (int event, void *data) |
Receives the event code and data for an Event. | |
Data Fields | |
IpEndpoint | ip |
MIOBuffer * | buf |
IOBufferReader * | reader |
Definition at line 402 of file Prefetch.h.
KeepAliveLockHandler::KeepAliveLockHandler | ( | ) | [inline] |
Definition at line 407 of file Prefetch.h.
References ip.
KeepAliveLockHandler::~KeepAliveLockHandler | ( | ) | [inline] |
Definition at line 424 of file Prefetch.h.
References Continuation::mutex.
int KeepAliveLockHandler::handleEvent | ( | int | event, | |
void * | data | |||
) |
Receives the event code and data for an Event.
This function receives the event code and data for an event and forwards them to the current continuation handler. The processor calling back the continuation is responsible for acquiring its lock.
event | Event code to be passed at callback (Processor specific). | |
data | General purpose data related to the event code (Processor specific). |
Reimplemented from Continuation.
Definition at line 2236 of file Prefetch.cc.
References KeepAliveConnTable::append(), buf, EVENT_INTERVAL, ip, prefetchLockHandlerAllocator, and reader.
Referenced by init().
void KeepAliveLockHandler::init | ( | IpEndpoint const & | xip, | |
MIOBuffer * | xbuf, | |||
IOBufferReader * | xreader | |||
) | [inline] |
Definition at line 412 of file Prefetch.h.
References KeepAliveConnTable::arr, ats_ip_copy(), buf, handleEvent(), HRTIME_MSECONDS, ip, KeepAliveConnTable::ip_hash(), Continuation::mutex, reader, EThread::schedule_in(), SET_HANDLER, and this_ethread().
Definition at line 431 of file Prefetch.h.
Referenced by handleEvent(), and init().
Definition at line 430 of file Prefetch.h.
Referenced by handleEvent(), init(), and KeepAliveLockHandler().
Definition at line 432 of file Prefetch.h.
Referenced by handleEvent(), and init().