#include "squid.h"
#include "comm/Loops.h"
#include "fde.h"
#include "globals.h"
#include "SquidTime.h"
#include "StatCounters.h"
#include "Store.h"
#include <cerrno>

Go to the source code of this file.
Macros | |
#define | KE_LENGTH 128 |
#define | EV_SET(kevp, a, b, c, d, e, f) |
Functions | |
static void | kq_update_events (int, short, PF *) |
static void | commKQueueRegisterWithCacheManager (void) |
Variables | |
static int | kq |
static struct timespec | zero_timespec |
static struct kevent * | kqlst |
static int | kqmax |
static int | kqoff |
static int | max_poll_time = 1000 |
Macro Definition Documentation
◆ EV_SET
#define EV_SET | ( | kevp, | |
a, | |||
b, | |||
c, | |||
d, | |||
e, | |||
f | |||
) |
Definition at line 52 of file ModKqueue.cc.
Referenced by kq_update_events().
◆ KE_LENGTH
#define KE_LENGTH 128 |
Definition at line 47 of file ModKqueue.cc.
Function Documentation
◆ commKQueueRegisterWithCacheManager()
|
static |
Definition at line 292 of file ModKqueue.cc.
Referenced by kq_update_events().
◆ kq_update_events()
Definition at line 78 of file ModKqueue.cc.
References assert, Comm::COMM_ERROR, COMM_SELECT_READ, COMM_SELECT_WRITE, commKQueueRegisterWithCacheManager(), DBG_IMPORTANT, debugs, Comm::DoSelect(), EV_SET, F(), fatal(), fd_table, fde::flags, getCurrentTime(), handler(), HERE(), i, ignoreErrno(), int, kq, kqlst, kqmax, kqoff, max_poll_time, NULL, Comm::OK, fde::_fde_flags::open, Comm::QuickPollRequired(), fde::read_data, fde::read_handler, fde::_fde_flags::read_pending, StatCounters::select_loops, Comm::SelectLoopInit(), Comm::SetSelect(), squid_curtime, statCounter, fde::timeout, type, fde::write_data, fde::write_handler, xmalloc, and zero_timespec.
Variable Documentation
◆ kq
|
static |
Definition at line 63 of file ModKqueue.cc.
Referenced by kq_update_events().
◆ kqlst
|
static |
Definition at line 67 of file ModKqueue.cc.
Referenced by kq_update_events().
◆ kqmax
|
static |
Definition at line 68 of file ModKqueue.cc.
Referenced by kq_update_events().
◆ kqoff
|
static |
Definition at line 69 of file ModKqueue.cc.
Referenced by kq_update_events().
◆ max_poll_time
|
static |
Definition at line 70 of file ModKqueue.cc.
Referenced by kq_update_events().
◆ zero_timespec
|
static |
Definition at line 65 of file ModKqueue.cc.
Referenced by kq_update_events().