optimize pthread termination in the non-detached case

we can avoid blocking signals by simply using a flag to mark that the
thread has exited and prevent it from getting counted in the rsyscall
signal-pingpong. this restores the original pthread create/join
throughput from before the sigprocmask call was added.
This commit is contained in:
Rich Felker 2011-03-10 18:31:37 -05:00
commit 5fcebcde6a
2 changed files with 16 additions and 4 deletions

View file

@ -36,6 +36,7 @@ struct pthread {
struct __ptcb *cancelbuf;
void **tsd;
pthread_attr_t attr;
volatile int dead;
};
#define __SU (sizeof(size_t)/sizeof(int))