Re: libpthread: caching of data structures and kernel resources

2012-08-10 Thread Neal H. Walfield
At Fri, 10 Aug 2012 09:15:01 +0200, Neal H. Walfield wrote: > > Why does Viengoos in > > sysdeps/viengoos/pt-thread-halt.c:__pthread_thread_halt have to do > > different things depending on whether »thread == _pthread_self« or not? > > I'm assuming that on Mach, we can just always do thread_suspend

Re: libpthread: caching of data structures and kernel resources

2012-08-10 Thread Neal H. Walfield
Hi, Thomas, At Fri, 10 Aug 2012 01:17:30 +0200, Thomas Schwinge wrote: > libpthread applies some caching of data structures > (cf. __pthread_free_threads; »state == PTHREAD_TERMINATED«) which after a > thread has exited can be re-used for a new one. > ... > Is this an optimization, assuming the se

libpthread: caching of data structures and kernel resources

2012-08-09 Thread Thomas Schwinge
Hi! libpthread applies some caching of data structures (cf. __pthread_free_threads; »state == PTHREAD_TERMINATED«) which after a thread has exited can be re-used for a new one. This also applies to kernel resources (cf. have_kernel_resources), that may also be re-used. That is, on Mach, instead o