Merge branch 'ct' of git.pipapo.org:cinelerra-ct into ct
[cinelerra_cv/ct.git] / guicast / bcrepeater.h
blob0cb0e41b09fd2154e9975c61c9eb086f43e3d27e
1 #ifndef BCREPEATER_H
2 #define BCREPEATER_H
4 #include "bcrepeater.inc"
5 #include "bcwindowbase.inc"
6 #include "condition.inc"
7 #include "thread.h"
8 #include "bctimer.h"
10 class BC_Repeater : public Thread
12 public:
13 BC_Repeater(BC_WindowBase *top_level, long delay);
14 ~BC_Repeater();
16 void initialize();
17 int start_repeating();
18 int stop_repeating();
19 void run();
21 long repeat_id;
22 long delay;
23 int repeating;
24 int interrupted;
25 // Prevent new signal until existing event is processed
26 Condition *repeat_lock;
28 private:
29 Timer timer;
30 BC_WindowBase *top_level;
31 // Delay corrected for the time the last repeat took
32 long next_delay;
33 Condition *pause_lock;
34 Condition *startup_lock;
39 #endif
41 // Local Variables:
42 // mode: C++
43 // c-file-style: "linux"
44 // End: