5 #include "indexfile.inc"
10 #define TOTAL_BUFFERS 2
12 // Recieves buffers from Indexfile and calculates the index.
14 class IndexThread
: public Thread
17 IndexThread(MWindow
*mwindow
,
18 IndexFile
*index_file
,
22 int64_t length_source
);
25 friend class IndexFile
;
31 IndexFile
*index_file
;
35 int64_t buffer_size
, length_source
;
40 double **buffer_in
[TOTAL_BUFFERS
];
41 Mutex input_lock
[TOTAL_BUFFERS
], output_lock
[TOTAL_BUFFERS
];
42 int last_buffer
[TOTAL_BUFFERS
];
43 int64_t input_len
[TOTAL_BUFFERS
];