Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
Kea
Commits
5e463e91
Commit
5e463e91
authored
Aug 27, 2012
by
JINMEI Tatuya
Browse files
[2107] updated doc for MemorySegmentTest, with correction and clarification.
parent
dd156473
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/datasrc/memory/tests/memory_segment_test.h
View file @
5e463e91
...
@@ -27,8 +27,12 @@ namespace test {
...
@@ -27,8 +27,12 @@ namespace test {
// A special memory segment that can be used for tests. It normally behaves
// A special memory segment that can be used for tests. It normally behaves
// like a "local" memory segment. If "throw count" is set to non 0 via
// like a "local" memory segment. If "throw count" is set to non 0 via
// setThrowCount(), it continues the normal behavior up to the specified
// setThrowCount(), it continues the normal behavior until the specified
// number of calls to allocate(), and throws an exception at the next call.
// number of calls to allocate(), exclusive, and throws an exception at the
// next call. For example, if count is set to 3, the next two calls to
// allocate() will succeed, and the 3rd call will fail with an exception.
// This segment object can be used after the exception is thrown, and the
// count is internally reset to 0.
class
MemorySegmentTest
:
public
isc
::
util
::
MemorySegmentLocal
{
class
MemorySegmentTest
:
public
isc
::
util
::
MemorySegmentLocal
{
public:
public:
MemorySegmentTest
()
:
throw_count_
(
0
)
{}
MemorySegmentTest
()
:
throw_count_
(
0
)
{}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment