[*] 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
|
// attempt low-latency read-ahead
|
||||||
if (!this->bWritingAheadLowLatency &&
|
if (!this->bWritingAheadLowLatency &&
|
||||||
this->buffer_.RemainingWrite(this->uFrameCap_) /*ensure we can run ahead*/ &&
|
this->buffer_.CanWrite(this->uFrameCap_) /*ensure we can run ahead*/ &&
|
||||||
!this->IsAtRequestedEnd() /*do not preemptively terminate before the last callback is fired*/)
|
!this->IsAtRequestedEnd() /*do not preemptively terminate before the last callback is fired*/)
|
||||||
{
|
{
|
||||||
this->bWritingAheadLowLatency = true;
|
this->bWritingAheadLowLatency = true;
|
||||||
this->ReadNext();
|
this->ReadNext();
|
||||||
|
Loading…
Reference in New Issue
Block a user