Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I'm not quite sure if I'm right here (and I'd appreciate it if another HN reader corrected me).

But I think that's how the Queue object in Python 2.6 works. The Queue instance is locked, you seem to be free to do whatever within the threads that are consuming the queue.

The reason I'm not sure is that having a single object being locked seems to contradict the GIL concept...



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: