summaryrefslogtreecommitdiff
path: root/include/my_pthread.h
diff options
context:
space:
mode:
authorunknown <venu@hundin.mysql.fi>2003-01-28 03:37:57 +0200
committerunknown <venu@hundin.mysql.fi>2003-01-28 03:37:57 +0200
commitbe85fdc5d03c1d85a16c392dae955de12c9611ac (patch)
treee4df78bc12fe1f535fc9787f8ec13135134439c3 /include/my_pthread.h
parentf76a875e61e377090dc21cd08ec6f88fb526ffc1 (diff)
downloadmariadb-git-be85fdc5d03c1d85a16c392dae955de12c9611ac.tar.gz
Introduced a scalable key cache management.
Added some fields to the st_my_thread_var structure to be able to link such structures into a list. include/my_pthread.h: Added some fields to the st_my_thread_var structure to be able to link such structures into a list. mysys/mf_keycache.c: Introduced a scalable key cache management. BitKeeper/etc/logging_ok: Logging to logging@openlogging.org accepted
Diffstat (limited to 'include/my_pthread.h')
-rw-r--r--include/my_pthread.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/include/my_pthread.h b/include/my_pthread.h
index e0394bc978a..40013e07c0c 100644
--- a/include/my_pthread.h
+++ b/include/my_pthread.h
@@ -1,3 +1,4 @@
+
/* Copyright (C) 2000 MySQL AB
This program is free software; you can redistribute it and/or modify
@@ -428,7 +429,7 @@ struct tm *localtime_r(const time_t *clock, struct tm *res);
#endif /* defined(__WIN__) */
-#if defined(HPUX10) && !defined(DONT_REMAP_PTHREAD_FUNCTIONS)
+#if defined(HPUX) && !defined(DONT_REMAP_PTHREAD_FUNCTIONS)
#undef pthread_cond_timedwait
#define pthread_cond_timedwait(a,b,c) my_pthread_cond_timedwait((a),(b),(c))
int my_pthread_cond_timedwait(pthread_cond_t *cond, pthread_mutex_t *mutex,
@@ -581,13 +582,9 @@ extern int pthread_dummy(int);
#define THREAD_NAME_SIZE 10
#if defined(__ia64__)
-/*
- MySQL can survive with 32K, but some glibc libraries require > 128K stack
- To resolve hostnames
-*/
-#define DEFAULT_THREAD_STACK (192*1024L)
+#define DEFAULT_THREAD_STACK (128*1024)
#else
-#define DEFAULT_THREAD_STACK (192*1024L)
+#define DEFAULT_THREAD_STACK (64*1024)
#endif
struct st_my_thread_var
@@ -601,6 +598,8 @@ struct st_my_thread_var
long id;
int cmp_length;
int volatile abort;
+ struct st_my_thread_var *next,**prev;
+ void *opt_info;
#ifndef DBUG_OFF
gptr dbug;
char name[THREAD_NAME_SIZE+1];