CollapsedForwarding.cc
Go to the documentation of this file.
92 debugs(17, 7, "entry " << index << " to " << Config.workers << (includingThisWorker ? "" : "-1") << " workers");
RefCount< AsyncCallT< Dialer > > asyncCall(int aDebugSection, int aDebugLevel, const char *aName, const Dialer &aDialer)
Definition: AsyncCall.h:156
static const int QueueCapacity
a single worker-to-worker queue capacity
Definition: CollapsedForwarding.cc:29
static const char *const ShmLabel
shared memory segment path to use for CollapsedForwarding queue
Definition: CollapsedForwarding.cc:26
DefineRunnerRegistrator(CollapsedForwardingRr)
CollapsedForwardingMsg()
Definition: CollapsedForwarding.cc:37
sfileno xitIndex
transients index, so that workers can find [private] entries to sync
Definition: CollapsedForwarding.cc:46
void stat(std::ostream &)
prints message parameters; suitable for cache manager reports
Definition: CollapsedForwarding.cc:50
initializes shared queue used by CollapsedForwarding
Definition: CollapsedForwarding.cc:175
CollapsedForwardingRr()
Definition: CollapsedForwarding.cc:178
void create() override
called when the runner should create a new memory segment
Definition: CollapsedForwarding.cc:191
~CollapsedForwardingRr() override
Definition: CollapsedForwarding.cc:204
static void Notify(const int workerId)
kick worker with empty IPC queue
Definition: CollapsedForwarding.cc:109
static void StatQueue(std::ostream &)
prints IPC message queue state; suitable for cache manager reports
Definition: CollapsedForwarding.cc:165
static void Broadcast(const StoreEntry &e, const bool includingThisWorker=false)
notify other workers about changes in entry state (e.g., new data)
Definition: CollapsedForwarding.cc:70
static void HandleNewData(const char *const when)
handle new data messages in IPC queue
Definition: CollapsedForwarding.cc:121
static void HandleNotification(const Ipc::TypedMsgHdr &msg)
handle queue push notifications from worker or disker
Definition: CollapsedForwarding.cc:145
static void HandleNewDataAtStart()
Definition: CollapsedForwarding.cc:157
Definition: Segment.h:85
Definition: Queue.h:335
static Owner * Init(const String &id, const int processCount, const int processIdOffset, const unsigned int maxItemSize, const int capacity)
Definition: Queue.cc:368
Definition: Queue.h:96
static String MakeAddr(const char *proccessLabel, int id)
calculates IPC message address for strand id of processLabel type
Definition: Port.cc:52
struct msghdr with a known type, fixed-size I/O and control buffers
Definition: TypedMsgHdr.h:35
Calls a function without arguments. See also: NullaryMemFunT.
Definition: AsyncFunCalls.h:18
Definition: Store.h:42
bool hasTransients() const
whether there is a corresponding locked transients table entry
Definition: Store.h:211
int transientReaders(const StoreEntry &) const
number of the transient entry readers some time ago
Definition: Controller.cc:632
void syncCollapsed(const sfileno)
Update local intransit entry after changes made by appending worker.
Definition: Controller.cc:773
Definition: SquidString.h:26
int KidIdentifier
void SendMessage(const String &toAddress, const TypedMsgHdr &message)
Definition: UdsOp.cc:188
bool IamWorkerProcess()
whether the current process handles HTTP transactions and such
Definition: stub_tools.cc:47
bool UsingSmp()
Whether there should be more than one worker process running.
Definition: tools.cc:696