Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions SNAPLib/DataReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,6 @@ StdioDataReader::startIo()
//
// Synchronously read data into whatever buffers are ready.
//
AcquireExclusiveLock(&lock);
while (nextBufferForReader != -1) {
// remove from free list
BufferInfo* info = &bufferInfo[nextBufferForReader];
Expand All @@ -601,7 +600,6 @@ StdioDataReader::startIo()
info->nBytesThatMayBeginARead = 0;
info->isEOF = true;
info->state = Full;
ReleaseExclusiveLock(&lock);
return;
}

Expand Down Expand Up @@ -679,7 +677,6 @@ StdioDataReader::startIo()
//fprintf(stderr, "startIo thread %x reset releaseEvent\n", GetCurrentThreadId());
PreventEventWaitersFromProceeding(&releaseEvent);
}
ReleaseExclusiveLock(&lock);
}

void
Expand Down