]> git.ipfire.org Git - thirdparty/squid.git/commit - src/ipc/mem/Segment.cc
Add "fake" shared memory segment implementation.
authorDmitry Kurochkin <dmitry.kurochkin@measurement-factory.com>
Tue, 4 Oct 2011 17:25:56 +0000 (21:25 +0400)
committerDmitry Kurochkin <dmitry.kurochkin@measurement-factory.com>
Tue, 4 Oct 2011 17:25:56 +0000 (21:25 +0400)
commitbe9cb908306a7cf14033aafb63fcea168600eaab
tree86803d2e80f8ca6a2969c5cddf2a7cddaa0c392e
parent159535702cd2a2567f92afccce6e8c705aa4e329
Add "fake" shared memory segment implementation.

"Fake" shared memory segments are enabled #if a system does not
support POSIX shared memory.  Such segments use regular new to
allocate memory, it is not shared among multiple processes.  The
purpose of the change is to allow code that uses Ipc::Mem::Segment to
run in non-SMP mode (that is when only a single process, except for
master, is running) on systems without POSIX shared memory support.

Note: running SHM-using features in SMP mode still requires POSIX
shared memory support, the patch does not change that.
src/ipc/mem/Segment.cc
src/ipc/mem/Segment.h