]> git.ipfire.org Git - thirdparty/squid.git/commit - src/ipc/Coordinator.cc
Added IPC Strand and Coordinator classes. Strands are jobs responsible
authorAlex Rousskov <rousskov@measurement-factory.com>
Mon, 26 Apr 2010 07:09:03 +0000 (01:09 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Mon, 26 Apr 2010 07:09:03 +0000 (01:09 -0600)
commitba568924a51f14ee6b10c7470e337d87477bd575
treeeb69677892bb0e183ac35e7cbf487652238a908e
parent40daaeb8dbb4f6b69100d55d2e69596269ec1962
parent10cefb7b033e060e72da03da435430ae3f707cf2
Added IPC Strand and Coordinator classes. Strands are jobs responsible
for registering Squid processes or threads with the central Coordinator
job. Coordinator will broadcast control signals and shared ports to
Strands.

Added a simple hierarchy of inter-process communication (IPC) classes to
support Coordinator and Strands.

Print current process number (KidIdentifier) when writing debug messages.
This allows to easily isolate per-process progress even when using a single
cache.log.
12 files changed:
src/comm.cc
src/debug.cc
src/fde.h
src/ipc/Coordinator.cc
src/ipc/Coordinator.h
src/ipc/Kids.cc
src/ipc/Port.cc
src/ipc/Port.h
src/ipc/Strand.cc
src/ipc/Strand.h
src/ipc/UdsOp.cc
src/ipc/UdsOp.h