Skip to content
Snippets Groups Projects
Commit e5da46a6 authored by mattijs's avatar mattijs
Browse files

ENH: PstreamBuffers: added clear function

parent 45e50384
Branches
Tags
No related merge requests found
......@@ -145,4 +145,19 @@ void Foam::PstreamBuffers::finishedSends(labelListList& sizes, const bool block)
}
void Foam::PstreamBuffers::clear()
{
forAll(sendBuf_, i)
{
sendBuf_[i].clear();
}
forAll(recvBuf_, i)
{
recvBuf_[i].clear();
}
recvBufPos_ = 0;
finishedSendsCalled_ = false;
}
// ************************************************************************* //
......@@ -112,8 +112,6 @@ class PstreamBuffers
bool finishedSendsCalled_;
// Private Member Functions
public:
// Static data
......@@ -155,6 +153,9 @@ public:
// non-blocking.
void finishedSends(labelListList& sizes, const bool block = true);
//- Clear storage and reset
void clear();
};
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment