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
3869c130
Commit
3869c130
authored
Jun 06, 2014
by
Georgios Dagkakis
Committed by
Jérome Perrin
Jun 06, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ShiftScheduler correction to initilize signal
parent
484ce818
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
dream/simulation/ShiftScheduler.py
dream/simulation/ShiftScheduler.py
+2
-1
No files found.
dream/simulation/ShiftScheduler.py
View file @
3869c130
...
@@ -87,6 +87,7 @@ class ShiftScheduler(ObjectInterruption):
...
@@ -87,6 +87,7 @@ class ShiftScheduler(ObjectInterruption):
if
self
.
endUnfinished
and
len
(
self
.
victim
.
getActiveObjectQueue
())
==
1
and
(
not
self
.
victim
.
waitToDispose
):
if
self
.
endUnfinished
and
len
(
self
.
victim
.
getActiveObjectQueue
())
==
1
and
(
not
self
.
victim
.
waitToDispose
):
self
.
victim
.
isWorkingOnTheLastBeforeOffShift
=
True
self
.
victim
.
isWorkingOnTheLastBeforeOffShift
=
True
yield
self
.
victimEndedLastProcessing
yield
self
.
victimEndedLastProcessing
self
.
victimEndedLastProcessing
=
self
.
env
.
event
()
self
.
interruptVictim
()
# interrupt processing operations if any
self
.
interruptVictim
()
# interrupt processing operations if any
self
.
victim
.
onShift
=
False
# get the victim off-shift
self
.
victim
.
onShift
=
False
# get the victim off-shift
...
...
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