diff options
author | unknown <knielsen@mysql.com> | 2006-03-28 10:07:03 +0200 |
---|---|---|
committer | unknown <knielsen@mysql.com> | 2006-03-28 10:07:03 +0200 |
commit | fa780d44c64df04bb78d097e984b40fdf11edc84 (patch) | |
tree | 6724cacb8e05bc9947fee00d5a2dd6c47605ce66 /include | |
parent | 73970addd82584a9ec6ad4c95ba5d54dfe0f640c (diff) | |
parent | 421ae80b0ccbfa33856fe1f079bc3cd6acf44175 (diff) | |
download | mariadb-git-fa780d44c64df04bb78d097e984b40fdf11edc84.tar.gz |
Manual merge.
configure.in:
Auto merged
mysql-test/mysql-test-run.pl:
Auto merged
sql/mysqld.cc:
Auto merged
sql/sql_insert.cc:
Auto merged
Diffstat (limited to 'include')
-rw-r--r-- | include/my_dbug.h | 1 | ||||
-rw-r--r-- | include/my_pthread.h | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/include/my_dbug.h b/include/my_dbug.h index db2139fa2e2..65bb7b55d0d 100644 --- a/include/my_dbug.h +++ b/include/my_dbug.h @@ -81,6 +81,7 @@ extern FILE *_db_fp_(void); #else /* No debugger */ #define DBUG_ENTER(a1) +#define DBUG_LEAVE #define DBUG_RETURN(a1) do { return(a1); } while(0) #define DBUG_VOID_RETURN do { return; } while(0) #define DBUG_EXECUTE(keyword,a1) do { } while(0) diff --git a/include/my_pthread.h b/include/my_pthread.h index 81100fe2b88..9146cab8589 100644 --- a/include/my_pthread.h +++ b/include/my_pthread.h @@ -116,6 +116,13 @@ void pthread_exit(void *a); /* was #define pthread_exit(A) ExitThread(A)*/ #define _REENTRANT 1 #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1 +/* + Windows has two ways to use thread local storage. The most efficient + is using __declspec(thread), but that does not work properly when + used in a .dll that is loaded at runtime, after program load. So for + libmysql.dll and libmysqld.dll we define USE_TLS in order to use the + TlsXxx() API instead, which works in all cases. +*/ #ifdef USE_TLS /* For LIBMYSQL.DLL */ #undef SAFE_MUTEX /* This will cause conflicts */ #define pthread_key(T,V) DWORD V |