Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

IndexThread Class Reference

#include <indexthread.h>

List of all members.

Public Member Functions

 IndexThread (MWindow *mwindow, IndexFile *index_file, Asset *asset, char *index_filename, int64_t buffer_size, int64_t length_source)
 ~IndexThread ()
int start_build ()
int stop_build ()
void run ()

Public Attributes

IndexFileindex_file
MWindowmwindow
Assetasset
char * index_filename
int64_t buffer_size
int64_t length_source
int current_buffer

Private Attributes

int interrupt_flag
double ** buffer_in [TOTAL_BUFFERS]
Condition * input_lock [TOTAL_BUFFERS]
Condition * output_lock [TOTAL_BUFFERS]
int last_buffer [TOTAL_BUFFERS]
int64_t input_len [TOTAL_BUFFERS]

Friends

class IndexFile


Detailed Description

Definition at line 14 of file indexthread.h.


Constructor & Destructor Documentation

IndexThread::IndexThread MWindow mwindow,
IndexFile index_file,
Asset asset,
char *  index_filename,
int64_t  buffer_size,
int64_t  length_source
 

Definition at line 18 of file indexthread.C.

References buffer_in, Asset::channels, Asset::index_buffer, Asset::index_offsets, Preferences::index_size, Asset::index_sizes, input_lock, interrupt_flag, output_lock, MWindow::preferences, and TOTAL_BUFFERS.

IndexThread::~IndexThread  ) 
 

Definition at line 62 of file indexthread.C.

References asset, buffer_in, Asset::channels, Asset::index_buffer, input_lock, output_lock, and TOTAL_BUFFERS.


Member Function Documentation

void IndexThread::run  ) 
 

Definition at line 93 of file indexthread.C.

References asset, buffer_in, Asset::channels, current_buffer, Asset::index_buffer, Asset::index_end, index_file, index_filename, Asset::index_offsets, Asset::index_sizes, Asset::index_status, Asset::index_zoom, input_len, input_lock, interrupt_flag, last_buffer, length_source, Asset::old_index_end, output_lock, IndexFile::redraw_edits(), TOTAL_BUFFERS, and Asset::write_index().

int IndexThread::start_build  ) 
 

Definition at line 79 of file indexthread.C.

References current_buffer, interrupt_flag, last_buffer, and TOTAL_BUFFERS.

Referenced by IndexFile::create_index().

int IndexThread::stop_build  ) 
 

Definition at line 88 of file indexthread.C.

Referenced by IndexFile::create_index().


Friends And Related Function Documentation

friend class IndexFile [friend]
 

Definition at line 25 of file indexthread.h.


Member Data Documentation

Asset* IndexThread::asset
 

Definition at line 33 of file indexthread.h.

Referenced by run(), and ~IndexThread().

double** IndexThread::buffer_in[TOTAL_BUFFERS] [private]
 

Definition at line 40 of file indexthread.h.

Referenced by IndexFile::create_index(), IndexThread(), run(), and ~IndexThread().

int64_t IndexThread::buffer_size
 

Definition at line 35 of file indexthread.h.

int IndexThread::current_buffer
 

Definition at line 36 of file indexthread.h.

Referenced by run(), and start_build().

IndexFile* IndexThread::index_file
 

Definition at line 31 of file indexthread.h.

Referenced by run().

char* IndexThread::index_filename
 

Definition at line 34 of file indexthread.h.

Referenced by run().

int64_t IndexThread::input_len[TOTAL_BUFFERS] [private]
 

Definition at line 43 of file indexthread.h.

Referenced by IndexFile::create_index(), and run().

Condition* IndexThread::input_lock[TOTAL_BUFFERS] [private]
 

Definition at line 41 of file indexthread.h.

Referenced by IndexFile::create_index(), IndexThread(), run(), and ~IndexThread().

int IndexThread::interrupt_flag [private]
 

Definition at line 39 of file indexthread.h.

Referenced by IndexFile::create_index(), IndexThread(), run(), and start_build().

int IndexThread::last_buffer[TOTAL_BUFFERS] [private]
 

Definition at line 42 of file indexthread.h.

Referenced by IndexFile::create_index(), run(), and start_build().

int64_t IndexThread::length_source
 

Definition at line 35 of file indexthread.h.

Referenced by run().

MWindow* IndexThread::mwindow
 

Definition at line 32 of file indexthread.h.

Condition * IndexThread::output_lock[TOTAL_BUFFERS] [private]
 

Definition at line 41 of file indexthread.h.

Referenced by IndexFile::create_index(), IndexThread(), run(), and ~IndexThread().


The documentation for this class was generated from the following files:
Generated on Sun Jan 8 13:39:15 2006 for Cinelerra-svn by  doxygen 1.4.4