mirror of
https://github.com/matrix-construct/construct
synced 2024-11-17 15:30:52 +01:00
ircd: Add misc assertions.
This commit is contained in:
parent
7bb8e9d5b6
commit
3b960d2576
2 changed files with 2 additions and 0 deletions
|
@ -105,6 +105,7 @@ noexcept
|
||||||
this->~list();
|
this->~list();
|
||||||
std::swap(head, o.head);
|
std::swap(head, o.head);
|
||||||
std::swap(tail, o.tail);
|
std::swap(tail, o.tail);
|
||||||
|
assert(!o.head && !o.tail);
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1959,6 +1959,7 @@ noexcept
|
||||||
// Must have a fully associated request/tag which has committed some
|
// Must have a fully associated request/tag which has committed some
|
||||||
// data to the wire to enter this routine.
|
// data to the wire to enter this routine.
|
||||||
assert(tag.committed());
|
assert(tag.committed());
|
||||||
|
assert(!tag.canceled());
|
||||||
assert(request.tag == &tag);
|
assert(request.tag == &tag);
|
||||||
assert(tag.request == &request);
|
assert(tag.request == &request);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue