fix __all_virtual_thread result incorrect

This commit is contained in:
nroskill
2023-05-11 10:13:16 +00:00
committed by ob-robot
parent aaab6560a1
commit caaed5132f
14 changed files with 48 additions and 11 deletions

View File

@ -60,10 +60,12 @@ public:
return update_loop_ts(common::ObTimeUtility::fast_current_time());
}
public:
// for thread diagnose, maybe replace it with union later.
static thread_local int64_t loop_ts_;
static thread_local pthread_t thread_joined_;
static thread_local int64_t sleep_us_;
static thread_local bool is_blocking_;
static thread_local char* rpc_dest_addr_;
private:
static void* __th_start(void *th);
void destroy_stack();