On Thu, Nov 27, 2014 at 09:59:45PM +0000, Charles-François Natali wrote:
2014-11-27 1:18 GMT+00:00 Trent Nelson firstname.lastname@example.org:
Everything else is just normal Python, nothing special -- it just conforms to the current constraints of PyParallel. Basically, the HttpServer.data_received() method will be invoked from parallel threads, not the main interpreter thread.
So, still no garbage collection from the threads?
Not having garbage collection has surprisingly not gotten in the way so far, so it's not even on the radar anymore. There are other means available for persisting objects past the lifetime of the parallel context, and you could always do an @async.call_from_main_thread if you want to have the main thread's memory allocator (and thus, GC) kick in.
At one point, all these tests passed, just to give you an idea of some of the facilities that are available:
(I haven't removed any of those facilities, I just haven't spent any time on them since switching over to the async socket stuff, so I can't comment on their current state.)
----- End forwarded message -----