balanced lock calls

This commit is contained in:
Jeff Hill
2000-06-27 22:33:22 +00:00
parent 384daa87cc
commit 33e6ae6470
+1
View File
@@ -157,6 +157,7 @@ const inBufCtx inBuf::pushCtx (bufSizeT headerSize, bufSizeT bodySize)
bufSizeT inBuf::popCtx (const inBufCtx &ctx)
{
if (ctx.stat==inBufCtx::pushCtxSuccess) {
this->mutex.lock();
bufSizeT bytesRemoved = this->nextReadIndex;
this->pBuf = ctx.pBuf;
this->bufSize = ctx.bufSize;