s? We kind of depend on it...
The patch fixes a buffering problem if the XML contains utf-8 codes,
which gets especially problematic if one such character pair starts as
the last byte in the buffer... Patch attached, in case someone can use it.
Regards,
Alban Hertroys,
MAG Productions.
--- ../xm
Jeremy Jones wrote:
* the get method on a queue object has a "block" flag. You can
effectively poll your queues something like this:
#untested code
#a_done, b_done and c_done are just checks to see if that particular
document is done
while not (a_done and b_done and c_done):
got_a, got_b, go
Jeremy Jones wrote:
(not waiting, because it already did happen). What is it exactly that
you are trying to accomplish? I'm sure there is a better approach.
I think I saw at least a bit of the light, reading up on readers and
writers (A colleague showed up with a book called "Operating system
Jeremy Jones wrote:
Alban Hertroys wrote:
Notify is called before thread B (in this case) hits the
condAllowed.wait() piece of code. So, it sits at that wait() for
forever (because it doesn't get notified, because the notification
already happened), waiting to be notified from the main t
27;m pretty sure the
problem is related to what I'm trying to fix in my application. Can
anybody explain what's happening (Or maybe even show me a better way of
doing this)?
Regards,
Alban Hertroys,
MAG Productions.
import sys
import threading
class AThread(threading.Thread):
def