]> git.ipfire.org Git - thirdparty/squid.git/commit - src/ipc/Strand.cc
Deduplicating IPC strand messages (#756)
authorEduard Bagdasaryan <eduard.bagdasaryan@measurement-factory.com>
Fri, 22 Jan 2021 17:20:30 +0000 (17:20 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Sun, 24 Jan 2021 22:07:39 +0000 (22:07 +0000)
commit6ccfd70a3b54bf2c7c7db749d58e17e49602fd9b
tree4439e1b30170d814dc0effcb84adc40b374514ea
parent9b8a8fe3a8f1544a880689acc84223b8883a312a
Deduplicating IPC strand messages (#756)

No functionality changes other than minor debugging improvements.

* replaced identical (except for the message kind value) HereIamMessage
  and StrandSearchResponse classes with StrandMessage
* reduced code duplication with a new StrandMessage::NotifyCoordinator()
* split TypedMsgHdr::type() into unchecked rawType() and checked type()
* renamed and documented several Ipc::MessageType enum values

The above code improvements will help with adding more IPC messages.
15 files changed:
src/DiskIO/IpcIo/IpcIoFile.cc
src/DiskIO/IpcIo/IpcIoFile.h
src/ipc/Coordinator.cc
src/ipc/Coordinator.h
src/ipc/Messages.h
src/ipc/Port.cc
src/ipc/Strand.cc
src/ipc/Strand.h
src/ipc/StrandCoord.cc
src/ipc/StrandCoord.h
src/ipc/StrandSearch.cc
src/ipc/StrandSearch.h
src/ipc/TypedMsgHdr.cc
src/ipc/TypedMsgHdr.h
src/ipc/forward.h