Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
dream
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
dream
Commits
66448bed
Commit
66448bed
authored
Jul 24, 2014
by
Georgios Dagkakis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BatchDecomposition updated to work with the entityRemoved event
parent
f34f5389
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
dream/simulation/BatchDecomposition.py
dream/simulation/BatchDecomposition.py
+8
-5
No files found.
dream/simulation/BatchDecomposition.py
View file @
66448bed
...
@@ -126,8 +126,9 @@ class BatchDecomposition(CoreObject):
...
@@ -126,8 +126,9 @@ class BatchDecomposition(CoreObject):
self
.
canDispose
=
self
.
env
.
event
()
self
.
canDispose
=
self
.
env
.
event
()
# signal the receiver again and break
# signal the receiver again and break
if
self
.
signalReceiver
():
if
self
.
signalReceiver
():
break
self
.
waitEntityRemoval
=
True
if
self
.
entityRemoved
.
triggered
:
yield
self
.
entityRemoved
self
.
waitEntityRemoval
=
False
break
break
# for the consecutive times wait till the receiver is available and then signalReceiver
# for the consecutive times wait till the receiver is available and then signalReceiver
...
@@ -138,9 +139,11 @@ class BatchDecomposition(CoreObject):
...
@@ -138,9 +139,11 @@ class BatchDecomposition(CoreObject):
self
.
canDispose
=
self
.
env
.
event
()
self
.
canDispose
=
self
.
env
.
event
()
signaling
=
self
.
signalReceiver
()
signaling
=
self
.
signalReceiver
()
if
signaling
:
if
signaling
:
self
.
waitEntityRemoval
=
True
yield
self
.
entityRemoved
self
.
waitEntityRemoval
=
False
break
break
if
self
.
entityRemoved
.
triggered
:
break
self
.
entityRemoved
=
self
.
env
.
event
()
self
.
entityRemoved
=
self
.
env
.
event
()
# =======================================================================
# =======================================================================
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment