mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
Merge 10.1 into 10.2
Also, include fixes by Vladislav Vaintroub to the aws_key_management plugin. The AWS C++ SDK specifically depends on OPENSSL_LIBRARIES, not generic SSL_LIBRARIES (such as YaSSL).
This commit is contained in:
@@ -346,6 +346,26 @@ int my_pthread_mutex_trylock(pthread_mutex_t *mutex);
|
||||
} while(0)
|
||||
#endif /* !set_timespec_time_nsec */
|
||||
|
||||
#ifdef MYSQL_CLIENT
|
||||
#define _current_thd() NULL
|
||||
#elif defined(_WIN32)
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
#endif
|
||||
MYSQL_THD _current_thd_noinline();
|
||||
#define _current_thd() _current_thd_noinline()
|
||||
#else
|
||||
/*
|
||||
THR_THD is a key which will be used to set/get THD* for a thread,
|
||||
using my_pthread_setspecific_ptr()/my_thread_getspecific_ptr().
|
||||
*/
|
||||
extern pthread_key(MYSQL_THD, THR_THD);
|
||||
static inline MYSQL_THD _current_thd(void)
|
||||
{
|
||||
return my_pthread_getspecific_ptr(MYSQL_THD,THR_THD);
|
||||
}
|
||||
#endif
|
||||
|
||||
/* safe_mutex adds checking to mutex for easier debugging */
|
||||
struct st_hash;
|
||||
typedef struct st_safe_mutex_t
|
||||
|
Reference in New Issue
Block a user