mirror of
https://github.com/corundum/corundum.git
synced 2025-01-16 08:12:53 +08:00
Unconditionally wait at least one delta cycle
This commit is contained in:
parent
583849e0db
commit
021c91fcc7
@ -263,6 +263,7 @@ class ARPFrameSink():
|
|||||||
return not self.queue
|
return not self.queue
|
||||||
|
|
||||||
def wait(self, timeout=0):
|
def wait(self, timeout=0):
|
||||||
|
yield delay(0)
|
||||||
if self.queue:
|
if self.queue:
|
||||||
return
|
return
|
||||||
if timeout:
|
if timeout:
|
||||||
|
@ -375,6 +375,7 @@ class BaseRSerdesSink(object):
|
|||||||
return not self.queue
|
return not self.queue
|
||||||
|
|
||||||
def wait(self, timeout=0):
|
def wait(self, timeout=0):
|
||||||
|
yield delay(0)
|
||||||
if self.queue:
|
if self.queue:
|
||||||
return
|
return
|
||||||
if timeout:
|
if timeout:
|
||||||
|
@ -241,6 +241,7 @@ class EthFrameSink():
|
|||||||
return not self.queue
|
return not self.queue
|
||||||
|
|
||||||
def wait(self, timeout=0):
|
def wait(self, timeout=0):
|
||||||
|
yield delay(0)
|
||||||
if self.queue:
|
if self.queue:
|
||||||
return
|
return
|
||||||
if timeout:
|
if timeout:
|
||||||
|
@ -193,6 +193,7 @@ class GMIISink(object):
|
|||||||
return not self.queue
|
return not self.queue
|
||||||
|
|
||||||
def wait(self, timeout=0):
|
def wait(self, timeout=0):
|
||||||
|
yield delay(0)
|
||||||
if self.queue:
|
if self.queue:
|
||||||
return
|
return
|
||||||
if timeout:
|
if timeout:
|
||||||
|
@ -383,6 +383,7 @@ class IPFrameSink():
|
|||||||
return not self.queue
|
return not self.queue
|
||||||
|
|
||||||
def wait(self, timeout=0):
|
def wait(self, timeout=0):
|
||||||
|
yield delay(0)
|
||||||
if self.queue:
|
if self.queue:
|
||||||
return
|
return
|
||||||
if timeout:
|
if timeout:
|
||||||
|
@ -201,6 +201,7 @@ class MIISink(object):
|
|||||||
return not self.queue
|
return not self.queue
|
||||||
|
|
||||||
def wait(self, timeout=0):
|
def wait(self, timeout=0):
|
||||||
|
yield delay(0)
|
||||||
if self.queue:
|
if self.queue:
|
||||||
return
|
return
|
||||||
if timeout:
|
if timeout:
|
||||||
|
@ -476,6 +476,7 @@ class UDPFrameSink():
|
|||||||
return not self.queue
|
return not self.queue
|
||||||
|
|
||||||
def wait(self, timeout=0):
|
def wait(self, timeout=0):
|
||||||
|
yield delay(0)
|
||||||
if self.queue:
|
if self.queue:
|
||||||
return
|
return
|
||||||
if timeout:
|
if timeout:
|
||||||
|
@ -258,6 +258,7 @@ class XGMIISink(object):
|
|||||||
return not self.queue
|
return not self.queue
|
||||||
|
|
||||||
def wait(self, timeout=0):
|
def wait(self, timeout=0):
|
||||||
|
yield delay(0)
|
||||||
if self.queue:
|
if self.queue:
|
||||||
return
|
return
|
||||||
if timeout:
|
if timeout:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user