Re: [PATCH] Implement thread destruction

2013-12-26 Thread Richard Braun
On Thu, Dec 26, 2013 at 05:44:56PM +0100, Samuel Thibault wrote: > "loses", actually :) > (and ditto further down) Right, thanks. -- Richard Braun

Re: [PATCH] Implement thread destruction

2013-12-26 Thread Samuel Thibault
Richard Braun, le Thu 26 Dec 2013 17:22:58 +0100, a écrit : > + __pthread_thread_terminate). THREAD looses one reference and is "loses", actually :) (and ditto further down) It looks alright to me, and less clumsy than the previous way. Samuel

[PATCH] Implement thread destruction

2013-12-26 Thread Richard Braun
This change makes libpthread release almost every resource allocated for a thread, including the kernel thread, its send right, its reply port and its stack. This improves resource usage after peaks of activity during which servers can create hundreds or even thousands of threads. To achieve it, t