diff options
author | unknown <serg@sergbook.mysql.com> | 2003-03-24 11:19:28 +0100 |
---|---|---|
committer | unknown <serg@sergbook.mysql.com> | 2003-03-24 11:19:28 +0100 |
commit | e11f5fde7f0ff29e1a05b1ec6f9e53e1f4e32b00 (patch) | |
tree | 084434ac9deb25d3782c5f026e39743224fffb0c /include | |
parent | 44b409285634d6ffe1b8bed578d447acfc8f86d3 (diff) | |
download | mariadb-git-e11f5fde7f0ff29e1a05b1ec6f9e53e1f4e32b00.tar.gz |
make myisam usable without threads (and even w/o pthread_t)
Diffstat (limited to 'include')
-rw-r--r-- | include/myisam.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/myisam.h b/include/myisam.h index def8b492681..11dae5f59ba 100644 --- a/include/myisam.h +++ b/include/myisam.h @@ -366,14 +366,18 @@ typedef struct st_sort_info SORT_KEY_BLOCKS *key_block,*key_block_end; /* sync things*/ uint got_error, threads_running; +#ifdef THREAD pthread_mutex_t mutex; pthread_cond_t cond; +#endif } SORT_INFO; typedef struct st_mi_sort_param { +#ifdef THREAD pthread_t thr; +#endif IO_CACHE read_cache, tempfile, tempfile_for_exceptions; DYNAMIC_ARRAY buffpek; ulonglong unique[MI_MAX_KEY_SEG+1]; |