CollapsedForwarding.cc
Go to the documentation of this file.
static String MakeAddr(const char *proccessLabel, int id)
calculates IPC message address for strand id of processLabel type
Definition: Port.cc:52
int transientReaders(const StoreEntry &) const
number of the transient entry readers some time ago
Definition: Controller.cc:624
DefineRunnerRegistrator(CollapsedForwardingRr)
sfileno xitIndex
transients index, so that workers can find [private] entries to sync
Definition: CollapsedForwarding.cc:46
Definition: Queue.h:334
Calls a function without arguments. See also: NullaryMemFunT.
Definition: AsyncFunCalls.h:17
int KidIdentifier
Definition: Segment.h:84
bool IamWorkerProcess()
whether the current process handles HTTP transactions and such
Definition: stub_tools.cc:47
RefCount< AsyncCallT< Dialer > > asyncCall(int aDebugSection, int aDebugLevel, const char *aName, const Dialer &aDialer)
Definition: AsyncCall.h:156
CollapsedForwardingMsg()
Definition: CollapsedForwarding.cc:37
static void HandleNewData(const char *const when)
handle new data messages in IPC queue
Definition: CollapsedForwarding.cc:121
Definition: Queue.h:96
static void HandleNewDataAtStart()
Definition: CollapsedForwarding.cc:157
CollapsedForwardingRr()
Definition: CollapsedForwarding.cc:178
void stat(std::ostream &)
prints message parameters; suitable for cache manager reports
Definition: CollapsedForwarding.cc:50
static Owner * Init(const String &id, const int processCount, const int processIdOffset, const unsigned int maxItemSize, const int capacity)
Definition: Queue.cc:368
static void HandleNotification(const Ipc::TypedMsgHdr &msg)
handle queue push notifications from worker or disker
Definition: CollapsedForwarding.cc:145
static void StatQueue(std::ostream &)
prints IPC message queue state; suitable for cache manager reports
Definition: CollapsedForwarding.cc:165
initializes shared queue used by CollapsedForwarding
Definition: CollapsedForwarding.cc:174
void SendMessage(const String &toAddress, const TypedMsgHdr &message)
Definition: UdsOp.cc:188
Definition: SquidString.h:25
void syncCollapsed(const sfileno)
Update local intransit entry after changes made by appending worker.
Definition: Controller.cc:765
static const int QueueCapacity
a single worker-to-worker queue capacity
Definition: CollapsedForwarding.cc:29
void create() override
called when the runner should create a new memory segment
Definition: CollapsedForwarding.cc:191
Definition: Store.h:37
~CollapsedForwardingRr() override
Definition: CollapsedForwarding.cc:204
struct msghdr with a known type, fixed-size I/O and control buffers
Definition: TypedMsgHdr.h:34
bool hasTransients() const
whether there is a corresponding locked transients table entry
Definition: Store.h:210
static void Notify(const int workerId)
kick worker with empty IPC queue
Definition: CollapsedForwarding.cc:109
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
bool UsingSmp()
Whether there should be more than one worker process running.
Definition: tools.cc:696
static const char *const ShmLabel
shared memory segment path to use for CollapsedForwarding queue
Definition: CollapsedForwarding.cc:26
Introduction
- About Squid
- Why Squid?
- Squid Developers
- How to Donate
- How to Help Out
- Getting Squid
- Squid Source Packages
- Squid Deployment Case-Studies
- Squid Software Foundation
Documentation
- Quick Setup
- Configuration:
- FAQ and Wiki
- Guide Books:
- Non-English
- More...
Support
- Security Advisories
- Bugzilla Database
- Mailing lists
- Contacting us
- Commercial services
- Project Sponsors
- Squid-based products