Two bugs:
Don't overflow the buffer! Compare the index for overflow not the position. Read/write of 0 returns 0 even when non-blocking.
Please register or sign in to comment
Don't overflow the buffer! Compare the index for overflow not the position. Read/write of 0 returns 0 even when non-blocking.