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
608a7b46
Commit
608a7b46
authored
Aug 12, 2014
by
Georgios Dagkakis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reset the flag correctly
parent
45ef0893
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
dream/simulation/BatchReassembly.py
dream/simulation/BatchReassembly.py
+2
-0
No files found.
dream/simulation/BatchReassembly.py
View file @
608a7b46
...
@@ -97,6 +97,7 @@ class BatchReassembly(CoreObject):
...
@@ -97,6 +97,7 @@ class BatchReassembly(CoreObject):
requestingObject
=
self
.
isRequested
.
value
requestingObject
=
self
.
isRequested
.
value
assert
requestingObject
==
self
.
giver
,
'the giver is not the requestingObject'
assert
requestingObject
==
self
.
giver
,
'the giver is not the requestingObject'
self
.
isRequested
=
self
.
env
.
event
()
self
.
isRequested
=
self
.
env
.
event
()
self
.
isProcessingInitialWIP
=
False
break
break
if
not
self
.
isProcessingInitialWIP
:
# if we are in the state of having initial wip no need to take an Entity
if
not
self
.
isProcessingInitialWIP
:
# if we are in the state of having initial wip no need to take an Entity
...
@@ -113,6 +114,7 @@ class BatchReassembly(CoreObject):
...
@@ -113,6 +114,7 @@ class BatchReassembly(CoreObject):
if
self
.
currentEntity
.
type
==
'SubBatch'
:
if
self
.
currentEntity
.
type
==
'SubBatch'
:
yield
self
.
env
.
timeout
(
self
.
calculateProcessingTime
())
yield
self
.
env
.
timeout
(
self
.
calculateProcessingTime
())
self
.
reassemble
()
self
.
reassemble
()
self
.
isProcessingInitialWIP
=
False
if
not
self
.
signalReceiver
():
if
not
self
.
signalReceiver
():
while
1
:
while
1
:
receivedEvent
=
yield
self
.
canDispose
|
self
.
interruptionStart
receivedEvent
=
yield
self
.
canDispose
|
self
.
interruptionStart
...
...
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