summaryrefslogtreecommitdiff
path: root/sql/threadpool.h
diff options
context:
space:
mode:
authorSergey Vojtovich <svoj@mariadb.org>2020-03-27 02:24:49 +0400
committerSergey Vojtovich <svoj@mariadb.org>2020-03-27 11:41:46 +0400
commit9eae063e79376fd71586e1106e750a366467a984 (patch)
treeccc44a915a5f5d0b5644fae281f40698d29d055f /sql/threadpool.h
parente91a3ea73284c53acda86b8bcaa02e8c92cbbf2e (diff)
downloadmariadb-git-9eae063e79376fd71586e1106e750a366467a984.tar.gz
num_worker_threads my_atomic to Atomic_counter
Diffstat (limited to 'sql/threadpool.h')
-rw-r--r--sql/threadpool.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/threadpool.h b/sql/threadpool.h
index 6299510d002..9145098be3f 100644
--- a/sql/threadpool.h
+++ b/sql/threadpool.h
@@ -47,7 +47,7 @@ extern void tp_timeout_handler(TP_connection *c);
struct TP_STATISTICS
{
/* Current number of worker thread. */
- volatile int32 num_worker_threads;
+ Atomic_counter<uint32_t> num_worker_threads;
};
extern TP_STATISTICS tp_stats;