summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authormonty@mashka.mysql.fi <>2003-10-16 03:08:40 +0300
committermonty@mashka.mysql.fi <>2003-10-16 03:08:40 +0300
commite87c9f5ff8e94ababbed0161101cfd3616d20422 (patch)
treebd2eb4ac5dffdd3ac1af40b53a3680a0a9d78195 /include
parent0d34e50f39e1b7cb14170dabc08f7823cb50a2e9 (diff)
parent4d45ad98b966cf26b8aaf888deed7d1c4c61fc84 (diff)
downloadmariadb-git-e87c9f5ff8e94ababbed0161101cfd3616d20422.tar.gz
merge with 4.0
Diffstat (limited to 'include')
-rw-r--r--include/mysql.h3
-rw-r--r--include/queues.h1
-rw-r--r--include/thr_alarm.h4
3 files changed, 7 insertions, 1 deletions
diff --git a/include/mysql.h b/include/mysql.h
index a8ced90f414..f44d515478c 100644
--- a/include/mysql.h
+++ b/include/mysql.h
@@ -66,6 +66,9 @@ typedef int my_socket;
extern unsigned int mysql_port;
extern char *mysql_unix_port;
+#define CLIENT_NET_READ_TIMEOUT 365*24*3600 /* Timeout on read */
+#define CLIENT_NET_WRITE_TIMEOUT 365*24*3600 /* Timeout on write */
+
#ifdef __NETWARE__
#pragma pack(push, 8) /* 8 byte alignment */
#endif
diff --git a/include/queues.h b/include/queues.h
index 699705d0869..ac15b09719b 100644
--- a/include/queues.h
+++ b/include/queues.h
@@ -49,6 +49,7 @@ int init_queue(QUEUE *queue,uint max_elements,uint offset_to_key,
int reinit_queue(QUEUE *queue,uint max_elements,uint offset_to_key,
pbool max_at_top, queue_compare compare,
void *first_cmp_arg);
+int resize_queue(QUEUE *queue, uint max_elements);
void delete_queue(QUEUE *queue);
void queue_insert(QUEUE *queue,byte *element);
byte *queue_remove(QUEUE *queue,uint idx);
diff --git a/include/thr_alarm.h b/include/thr_alarm.h
index 8ff4472f700..0dbb700b4fc 100644
--- a/include/thr_alarm.h
+++ b/include/thr_alarm.h
@@ -60,9 +60,10 @@ typedef my_bool ALARM;
#define thr_end_alarm(A)
#define thr_alarm(A,B,C) ((*(A)=1)-1)
/* The following should maybe be (*(A)) */
-#define thr_got_alarm(A) 0
+#define thr_got_alarm(A) 0
#define init_thr_alarm(A)
#define thr_alarm_kill(A)
+#define resize_thr_alarm(N)
#define end_thr_alarm()
#else
@@ -100,6 +101,7 @@ typedef struct st_alarm {
#define thr_alarm_init(A) (*(A))=0
#define thr_alarm_in_use(A) (*(A)!= 0)
void init_thr_alarm(uint max_alarm);
+void resize_thr_alarm(uint max_alarms);
my_bool thr_alarm(thr_alarm_t *alarmed, uint sec, ALARM *buff);
void thr_alarm_kill(pthread_t thread_id);
void thr_end_alarm(thr_alarm_t *alarmed);