summaryrefslogtreecommitdiff
path: root/include/waiting_threads.h
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mysql.com>2008-08-07 22:57:25 +0200
committerSergei Golubchik <serg@mysql.com>2008-08-07 22:57:25 +0200
commitf8c1059cbf62e95d2684fdf8b9badc398f845173 (patch)
tree7bc29e1219370afd3f03b8a9fdf4f2097ee0d106 /include/waiting_threads.h
parent5a4cdba54415faf7dd0b5afdb8ed683dea1c126b (diff)
downloadmariadb-git-f8c1059cbf62e95d2684fdf8b9badc398f845173.tar.gz
move wt* maintainance from maria to the server
include/waiting_threads.h: C_MODE_START/END mysys/waiting_threads.c: relax the checks - auto init thd in will_wait_for, allow to destroy uninited thd (=noop), allow a "release" an unexistent resource (=noop), sql/sql_class.cc: move wt* maintainance from maria to the server. do THD::cleanup after ha_close_connection() and plugin_thdvar_cleanup(). storage/maria/unittest/trnman-t.c: update to new prototype
Diffstat (limited to 'include/waiting_threads.h')
-rw-r--r--include/waiting_threads.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/waiting_threads.h b/include/waiting_threads.h
index 6355a83b13d..cf55e586d48 100644
--- a/include/waiting_threads.h
+++ b/include/waiting_threads.h
@@ -18,6 +18,9 @@
#include <my_global.h>
#include <my_sys.h>
+
+C_MODE_START
+
#include <lf.h>
typedef struct st_wt_resource_id WT_RESOURCE_ID;
@@ -155,4 +158,6 @@ void wt_thd_release(WT_THD *, WT_RESOURCE_ID *);
#define wt_thd_release_all(THD) wt_thd_release((THD), 0)
int wt_resource_id_memcmp(void *, void *);
+C_MODE_END
+
#endif