[*] amend write ahead check
This commit is contained in:
parent
ac4968512b
commit
e2f16091d9
@ -262,8 +262,8 @@ namespace Aurora::IO
|
||||
|
||||
// attempt low-latency read-ahead
|
||||
if (!this->bWritingAheadLowLatency &&
|
||||
this->buffer_.RemainingWrite(this->uFrameCap_) /*ensure we can run ahead*/ &&
|
||||
!this->IsAtRequestedEnd() /*do not preemptively terminate before the last callback is fired*/)
|
||||
this->buffer_.CanWrite(this->uFrameCap_) /*ensure we can run ahead*/ &&
|
||||
!this->IsAtRequestedEnd() /*do not preemptively terminate before the last callback is fired*/)
|
||||
{
|
||||
this->bWritingAheadLowLatency = true;
|
||||
this->ReadNext();
|
||||
|
Loading…
Reference in New Issue
Block a user