[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[minion-cvs] Oops; write_to_read was broken; fix it.



Update of /home/minion/cvsroot/src/minion/lib/mixminion
In directory moria.mit.edu:/tmp/cvs-serv17085

Modified Files:
	ThreadUtils.py 
Log Message:
Oops; write_to_read was broken; fix it.

Index: ThreadUtils.py
===================================================================
RCS file: /home/minion/cvsroot/src/minion/lib/mixminion/ThreadUtils.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- ThreadUtils.py	2 May 2004 18:45:15 -0000	1.3
+++ ThreadUtils.py	27 Jul 2004 03:10:55 -0000	1.4
@@ -234,6 +234,7 @@
             if not self.writer:
                 raise ValueError, \
                       '.write_to_read() invoked without an active writer'
+            ident = _get_ident()
             if self.writer != ident:
                 raise ValueError("write_out() called by non-writer")
             assert self.write_depth == 1
@@ -241,7 +242,7 @@
             self.writing = 0
             self.nw = self.nw - 1
             self.nr = self.nr + 1
-            self.readers[_get_ident()] = 1
+            self.readers[ident] = 1
             if not self.nw:
                 self.readOK.notifyAll()
         finally: