diff options
author | Sergey Vojtovich <svoj@mariadb.org> | 2020-03-27 02:24:49 +0400 |
---|---|---|
committer | Sergey Vojtovich <svoj@mariadb.org> | 2020-03-27 11:41:46 +0400 |
commit | 9eae063e79376fd71586e1106e750a366467a984 (patch) | |
tree | ccc44a915a5f5d0b5644fae281f40698d29d055f /sql/threadpool_win.cc | |
parent | e91a3ea73284c53acda86b8bcaa02e8c92cbbf2e (diff) | |
download | mariadb-git-9eae063e79376fd71586e1106e750a366467a984.tar.gz |
num_worker_threads my_atomic to Atomic_counter
Diffstat (limited to 'sql/threadpool_win.cc')
-rw-r--r-- | sql/threadpool_win.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/threadpool_win.cc b/sql/threadpool_win.cc index 6e96fa8e11c..7d721c88f96 100644 --- a/sql/threadpool_win.cc +++ b/sql/threadpool_win.cc @@ -332,7 +332,7 @@ void tp_win_callback_prolog() /* Running in new worker thread*/ FlsSetValue(fls, (void *)1); statistic_increment(thread_created, &LOCK_status); - InterlockedIncrement((volatile long *)&tp_stats.num_worker_threads); + tp_stats.num_worker_threads++; my_thread_init(); } } @@ -355,7 +355,7 @@ static VOID WINAPI thread_destructor(void *data) { if(data) { - InterlockedDecrement((volatile long *)&tp_stats.num_worker_threads); + tp_stats.num_worker_threads--; my_thread_end(); } } |