Skip to content

Commit

Permalink
Fix blocking write for FIFO
Browse files Browse the repository at this point in the history
  • Loading branch information
uklotzde committed Sep 6, 2019
1 parent 77b9013 commit 69d2414
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/util/fifo.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,8 @@ class FIFO {
}
void writeBlocking(const DataType* pData, int count) {
int written = 0;
while (written != count) {
int i = write(pData, count);
pData += i;
written += i;
while (written < count) {
written += write(pData + written, count - written);
}
}
int aquireWriteRegions(int count,
Expand Down

0 comments on commit 69d2414

Please sign in to comment.