diff options
author | 2018-07-16 18:09:27 -0700 | |
---|---|---|
committer | 2018-07-16 18:09:27 -0700 | |
commit | 00476fd2b8876f0e33f5bec4f14cd73edbc9fe8b (patch) | |
tree | 6839ddb5d3a0143fcb2dd9213ae2c06d5d1a2a4c /src/core/lib/iomgr/executor.h | |
parent | ef4c0bb249048aca08d50f3cc7bb4b8676ffee37 (diff) |
Fix tsan issue
Diffstat (limited to 'src/core/lib/iomgr/executor.h')
-rw-r--r-- | src/core/lib/iomgr/executor.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/lib/iomgr/executor.h b/src/core/lib/iomgr/executor.h index bb2c2d82b9..8829138c5f 100644 --- a/src/core/lib/iomgr/executor.h +++ b/src/core/lib/iomgr/executor.h @@ -27,7 +27,8 @@ typedef struct { gpr_mu mu; - size_t id; // For debugging purposes + size_t id; // For debugging purposes + const char* name; // Thread state name gpr_cv cv; grpc_closure_list elems; size_t depth; // Number of closures in the closure list @@ -62,7 +63,7 @@ class GrpcExecutor { void Enqueue(grpc_closure* closure, grpc_error* error, bool is_short); private: - static size_t RunClosures(grpc_closure_list list); + static size_t RunClosures(const char* executor_name, grpc_closure_list list); static void ThreadMain(void* arg); const char* name_; |