license header for review
[cinelerra_cv/ct.git] / cinelerra / threadindexer.h
blobbe7f02f877e4db1ebbdea5f7cc5b7c4939dd10dd
1 #ifndef THREADINDEXER_H
2 #define THREADINDEXER_H
5 #include "asset.inc"
6 #include "condition.inc"
7 #include "mwindow.inc"
8 #include "thread.h"
10 // ================================= builds the indexes as a thread
11 // Runs through all the assets and starts an index file building for each asset.
13 class ThreadIndexer : public Thread
15 public:
16 ThreadIndexer(MWindow *mwindow, Assets *assets);
17 ~ThreadIndexer();
19 int start_build();
20 void run();
21 int interrupt_build();
23 int interrupt_flag;
24 MWindow *mwindow;
25 Assets *assets;
26 Condition *interrupt_lock; // Force blocking until thread is finished
27 IndexFile *indexfile;
30 #endif
32 // Local Variables:
33 // mode: C++
34 // c-file-style: "linux"
35 // End: