X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=qchess%2Fsrc%2Ftimeout_player.py;h=1bd53c9ac0657b6b148097dfa38bd1e7d279b8c4;hb=b62f274ce80bc47fd5bd684cc4157860b8ad65f4;hp=937c94cf00a3e046e59afd93d8b8f0a75eb21255;hpb=877034f05346e24fdf822f6e6149ad50d891f030;p=progcomp2013.git diff --git a/qchess/src/timeout_player.py b/qchess/src/timeout_player.py index 937c94c..1bd53c9 100644 --- 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): - #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)) + #except IOError: + # pass @@ -44,7 +47,7 @@ def TimeoutFunction(function, args, timeout): w.terminate() s.join() raise Exception("TIMEOUT") - + time.sleep(0.1)