back.pysim: fix behavior of initial cycle for sync processes.
The current behavior was introduced in65702719, which was a wrong fix for an issue that was actually fixed in12e04e4e. This commit effectively reverts65702719and1782b841.
This commit is contained in:
parent
1782b841b2
commit
7b25665fde
3 changed files with 4 additions and 7 deletions
|
|
@ -414,13 +414,13 @@ class Simulator:
|
|||
process = self._check_process(process)
|
||||
def sync_process():
|
||||
try:
|
||||
result = None
|
||||
cmd = None
|
||||
while True:
|
||||
self._process_loc[sync_process] = self._name_process(process)
|
||||
cmd = process.send(result)
|
||||
if cmd is None:
|
||||
cmd = Tick(domain)
|
||||
result = yield cmd
|
||||
self._process_loc[sync_process] = self._name_process(process)
|
||||
cmd = process.send(result)
|
||||
except StopIteration:
|
||||
pass
|
||||
sync_process = sync_process()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue