IndexThread Class Reference

#include <indexthread.h>

Inherits Thread.

Collaboration diagram for IndexThread:

Collaboration graph
[legend]

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 ()

Data Fields

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]
Conditioninput_lock [TOTAL_BUFFERS]
Conditionoutput_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 
)

IndexThread::~IndexThread (  ) 


Member Function Documentation

int IndexThread::start_build (  ) 

Definition at line 81 of file indexthread.C.

References current_buffer, interrupt_flag, last_buffer, Thread::set_synchronous(), Thread::start(), and TOTAL_BUFFERS.

Referenced by IndexFile::create_index().

Here is the call graph for this function:

int IndexThread::stop_build (  ) 

Definition at line 90 of file indexthread.C.

References Thread::join().

Referenced by IndexFile::create_index().

Here is the call graph for this function:

void IndexThread::run (  )  [virtual]


Friends And Related Function Documentation

friend class IndexFile [friend]

Definition at line 25 of file indexthread.h.


Field Documentation

Definition at line 31 of file indexthread.h.

Referenced by run().

Definition at line 32 of file indexthread.h.

Definition at line 33 of file indexthread.h.

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

Definition at line 34 of file indexthread.h.

Referenced by run().

Definition at line 35 of file indexthread.h.

Definition at line 35 of file indexthread.h.

Referenced by run().

Definition at line 36 of file indexthread.h.

Referenced by run(), and start_build().

Definition at line 39 of file indexthread.h.

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

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

Definition at line 40 of file indexthread.h.

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

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

Definition at line 41 of file indexthread.h.

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

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

Definition at line 41 of file indexthread.h.

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

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::input_len[TOTAL_BUFFERS] [private]

Definition at line 43 of file indexthread.h.

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


The documentation for this class was generated from the following files:

Generated on Mon Apr 28 14:28:11 2008 for Cinelerra by  doxygen 1.5.5