diff options
author | unknown <bell@sanja.is.com.ua> | 2002-06-30 12:08:58 +0300 |
---|---|---|
committer | unknown <bell@sanja.is.com.ua> | 2002-06-30 12:08:58 +0300 |
commit | 23d1c4dbca8092a99fd9faef9e5f5f6af498fc06 (patch) | |
tree | 5e3f428ea24283f78ecea46b7c6bd8c3d117abfb /sql/sql_cache.h | |
parent | ad3eb445d4c205266b142d46daba3cb300bf0afe (diff) | |
download | mariadb-git-23d1c4dbca8092a99fd9faef9e5f5f6af498fc06.tar.gz |
semaphores replaced by rwlock
include/my_pthread.h:
small bug in #define
sql/sql_handler.cc:
bug in order of #includes
Diffstat (limited to 'sql/sql_cache.h')
-rw-r--r-- | sql/sql_cache.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/sql/sql_cache.h b/sql/sql_cache.h index 81ea80669b8..5403377564b 100644 --- a/sql/sql_cache.h +++ b/sql/sql_cache.h @@ -63,8 +63,6 @@ #define TABLE_COUNTER_TYPE uint8 -#include <my_semaphore.h> - struct Query_cache_block; struct Query_cache_block_table; struct Query_cache_table; @@ -110,16 +108,13 @@ struct Query_cache_block inline Query_cache_block_table *table(TABLE_COUNTER_TYPE n); }; - struct Query_cache_query { ulonglong limit_found_rows; + rw_lock_t lock; Query_cache_block *res; NET *wri; ulong len; - sem_t lock; // R/W lock of block - pthread_mutex_t clients_guard; - uint clients; inline void init_n_lock(); void unlock_n_destroy(); |