Commit dbd2d1b4 authored by Rich Prohaska's avatar Rich Prohaska Committed by Yoni Fogel

use toku_pthread_mutex_t closes[t:2605] #2605

git-svn-id: file:///svn/toku/tokudb@20182 c7de825b-a66e-492c-adef-691d508d4ae1
parent cd7927ea
...@@ -27,11 +27,11 @@ struct file_info { ...@@ -27,11 +27,11 @@ struct file_info {
void *buffer; void *buffer;
}; };
struct file_infos { struct file_infos {
toku_pthread_mutex_t lock; // must protect this data structure because current activity performs a REALLOC(fi->file_infos).
int n_files; int n_files;
int n_files_limit; int n_files_limit;
struct file_info *file_infos; struct file_info *file_infos;
int n_files_open, n_files_extant; int n_files_open, n_files_extant;
toku_pthread_mutex_t lock; // must protect this data structure because current activity performs a REALLOC(fi->file_infos).
}; };
typedef struct fidx { int idx; } FIDX; typedef struct fidx { int idx; } FIDX;
static const FIDX FIDX_NULL __attribute__((__unused__)) = {-1}; static const FIDX FIDX_NULL __attribute__((__unused__)) = {-1};
...@@ -154,7 +154,7 @@ struct brtloader_s { ...@@ -154,7 +154,7 @@ struct brtloader_s {
toku_pthread_t *fractal_threads; toku_pthread_t *fractal_threads;
BOOL *fractal_threads_live; // an array of bools indicating that fractal_threads[i] is a live thread. (There is no NULL for a pthread_t, so we have to maintain this separately). BOOL *fractal_threads_live; // an array of bools indicating that fractal_threads[i] is a live thread. (There is no NULL for a pthread_t, so we have to maintain this separately).
pthread_mutex_t mutex; toku_pthread_mutex_t mutex;
}; };
// Set the number of rows in the loader. Used for test. // Set the number of rows in the loader. Used for test.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment