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:
parent
dc54a7cbb9
commit
5fcebcde6a
2 changed files with 16 additions and 4 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue