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
ff845175
Commit
ff845175
authored
Oct 23, 2014
by
Georgios Dagkakis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Queue to signalGiver in a more robust way
parent
0b6d121c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
dream/simulation/Queue.py
dream/simulation/Queue.py
+5
-4
No files found.
dream/simulation/Queue.py
View file @
ff845175
...
@@ -96,6 +96,7 @@ class Queue(CoreObject):
...
@@ -96,6 +96,7 @@ class Queue(CoreObject):
# run method of the queue
# run method of the queue
#===========================================================================
#===========================================================================
def
run
(
self
):
def
run
(
self
):
activeObjectQueue
=
self
.
Res
.
users
activeObjectQueue
=
self
.
Res
.
users
# check if there is WIP and signal receiver
# check if there is WIP and signal receiver
self
.
initialSignalReceiver
()
self
.
initialSignalReceiver
()
...
@@ -130,13 +131,13 @@ class Queue(CoreObject):
...
@@ -130,13 +131,13 @@ class Queue(CoreObject):
if
self
.
haveToDispose
():
if
self
.
haveToDispose
():
if
self
.
receiver
:
if
self
.
receiver
:
if
not
self
.
receiver
.
entryIsAssignedTo
():
if
not
self
.
receiver
.
entryIsAssignedTo
():
# try to signal receiver. In case
fo
failure signal giver (for synchronization issues)
# try to signal receiver. In case
of
failure signal giver (for synchronization issues)
if
not
self
.
signalReceiver
():
if
not
self
.
signalReceiver
():
self
.
signalGiver
()
self
.
signalGiver
()
continue
continue
if
not
self
.
signalReceiver
():
self
.
signalReceiver
()
# try to signal receiver. In case fo failure signal
giver (for synchronization issues)
# signal the
giver (for synchronization issues)
self
.
signalGiver
()
self
.
signalGiver
()
# =======================================================================
# =======================================================================
# checks if the Queue can accept an entity
# checks if the Queue can accept an entity
...
...
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