r602: Fix baver's code... don't insert timecode when show_tc is not set
[cinelerra_cv/mob.git] / cinelerra / mainindexes.h
blob31fb7231c2d2a444d67347ce69c737799bbab048
1 #ifndef MAININDEXES_H
2 #define MAININDEXES_H
4 #include "asset.inc"
5 #include "condition.inc"
6 #include "indexfile.inc"
7 #include "mutex.inc"
8 #include "mwindow.inc"
9 #include "thread.h"
11 // Runs in a loop, creating new index files as needed
13 class MainIndexes : public Thread
15 public:
16 MainIndexes(MWindow *mwindow);
17 ~MainIndexes();
19 void add_next_asset(Asset *asset);
21 void start_loop();
22 void stop_loop();
23 void start_build();
24 void run();
25 void interrupt_build();
26 void load_next_assets();
27 void delete_current_assets();
29 ArrayList<Asset*> current_assets;
30 ArrayList<Asset*> next_assets;
32 int interrupt_flag; // Build process interrupted by user
33 int done; // Program quit
34 MWindow *mwindow;
35 Condition *input_lock; // Lock until new data is to be indexed
36 Mutex *next_lock; // Lock changes to next assets
37 Condition *interrupt_lock; // Force blocking until thread is finished
38 IndexFile *indexfile;
41 #endif