diff options
author | Sergey Vojtovich <svoj@mariadb.org> | 2020-04-15 20:38:25 +0400 |
---|---|---|
committer | Sergey Vojtovich <svoj@mariadb.org> | 2020-04-15 21:05:21 +0400 |
commit | 4bd9f82a8f58a462f44bec67d17e93079c669e28 (patch) | |
tree | 36466a76baa095935032e29a5ef67219a6adfbde /include/my_pthread.h | |
parent | 10cdf5230d0c8275830e9446c915651691219b39 (diff) | |
download | mariadb-git-4bd9f82a8f58a462f44bec67d17e93079c669e28.tar.gz |
slave_open_temp_tables to Atomic_counter
Diffstat (limited to 'include/my_pthread.h')
-rw-r--r-- | include/my_pthread.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/include/my_pthread.h b/include/my_pthread.h index ee8ab75b847..422be8e4b4a 100644 --- a/include/my_pthread.h +++ b/include/my_pthread.h @@ -817,16 +817,6 @@ extern uint thd_lib_detected; #define statistic_sub(V,C,L) (V)-=(C) #endif /* SAFE_STATISTICS */ -static inline void thread_safe_increment32(int32 *value) -{ - (void) my_atomic_add32_explicit(value, 1, MY_MEMORY_ORDER_RELAXED); -} - -static inline void thread_safe_decrement32(int32 *value) -{ - (void) my_atomic_add32_explicit(value, -1, MY_MEMORY_ORDER_RELAXED); -} - /* No locking needed, the counter is owned by the thread */ |