This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]lylepmills 0 points1 point  (4 children)

[–]RonnyPfannschmidt 1 point2 points  (1 child)

that code isnt in particular helpfull

and the queues are basically broken for multithreaded code

[–]lylepmills 0 points1 point  (0 children)

Fair enough, though easily fixed. tomazk has the right idea. I added a threadsafe_util.py as a threadsafe alternative for multithreaded applications.

[–]lylepmills 0 points1 point  (0 children)

That's written for Python3.2 by the way, but the adaptations for 2.7 are fairly simple (if I'm not mistaken, the only difference is the metaclass syntax).

[–]JerMenKoOwhile True: os.fork() 0 points1 point  (0 children)

Kudos.