backup pid && tid of pthread before stop

This commit is contained in:
obdev
2023-03-15 07:11:01 +00:00
committed by ob-robot
parent f5057f146f
commit cb4c4572e6
2 changed files with 16 additions and 1 deletions

View File

@ -81,6 +81,8 @@ private:
int64_t stack_size_;
bool stop_;
int64_t join_concurrency_;
pid_t pid_before_stop_;
pid_t tid_before_stop_;
};
OB_INLINE pid_t Thread::get_pid() const