]> git.ipfire.org Git - thirdparty/squid.git/commit
Added reserve() method to allow nested classes or similar related users of
authorAlex Rousskov <rousskov@measurement-factory.com>
Sat, 9 Apr 2011 04:20:21 +0000 (22:20 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Sat, 9 Apr 2011 04:20:21 +0000 (22:20 -0600)
commit937d0d3f1a1ba2a07def3bf46418d46146feaa4d
treea958f75de136f4e0c371614a8cc72f78249e534b
parentd1ad401770cb70481324120b655cced6bdd7263d
Added reserve() method to allow nested classes or similar related users of
the same segment to safely bite off pieces of the same shared segment. Still
need to convert the callers.

The reserve() method is useful for single-users as well because it allows
to check that a segment has enough bytes allocated for its single user.

Changed theSize type from int to "size of any single object in RAM" size_t.
src/ipc/mem/Segment.cc
src/ipc/mem/Segment.h