Confirmed users
398
edits
No edit summary |
|||
| Line 20: | Line 20: | ||
== Thread ID == | == Thread ID == | ||
The thread ID of parasited threads are different from frozen threads. So, Nuwa make a wrapper for pthread_self() to map thread ID of parasited threads to thread IDs of frozen threads. | The thread ID of parasited threads are different from frozen threads. So, Nuwa make a wrapper for pthread_self() to map thread ID of parasited threads to thread IDs of frozen threads. Some code use Linux depend gettid() syscall, I don't see any reason why people use gettid instead of pthread_self() for most situation. So, change the code using gettid() to call pthread_self() instead. Even more worse, some code call syscall() to invoke gettid. A wrapper of syscall() affects a lot of code, studying more is required before making a decision. | ||
== PIPE and Socketpair == | == PIPE and Socketpair == | ||