git.ucc.asn.au
/
progcomp2013.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Trying to fix bug with fifo and network players
[progcomp2013.git]
/
qchess
/
src
/
timeout_player.py
diff --git
a/qchess/src/timeout_player.py
b/qchess/src/timeout_player.py
index
937c94c
..
1bd53c9
100644
(file)
--- a/
qchess/src/timeout_player.py
+++ b/
qchess/src/timeout_player.py
@@
-22,8
+22,11
@@
class Worker(multiprocessing.Process):
self.q = q
def run(self):
self.q = q
def run(self):
- #print str(self) + " runs " + str(self.function) + " with args " + str(self.args)
+ #print str(self) + " runs " + str(self.function) + " with args " + str(self.args)
+ #try:
self.q.put(self.function(*self.args))
self.q.put(self.function(*self.args))
+ #except IOError:
+ # pass
@@
-44,7
+47,7
@@
def TimeoutFunction(function, args, timeout):
w.terminate()
s.join()
raise Exception("TIMEOUT")
w.terminate()
s.join()
raise Exception("TIMEOUT")
-
+ time.sleep(0.1)
UCC
git Repository :: git.ucc.asn.au