home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Geek 6
/
Geek-006.iso
/
linux
/
video
/
xmovie-1.5.3.tar.gz
/
xmovie-1.5.3.tar
/
xmovie-1.5.3
/
guicast
/
bcrepeater.h
< prev
next >
Wrap
C/C++ Source or Header
|
2000-11-29
|
646b
|
39 lines
#ifndef BCREPEATER_H
#define BCREPEATER_H
#include "bcrepeater.inc"
#include "bcwindowbase.inc"
#include "mutex.h"
#include "thread.h"
#include "timer.h"
class BC_Repeater : public Thread
{
public:
BC_Repeater(BC_WindowBase *top_level, long delay);
~BC_Repeater();
int start_repeating();
int stop_repeating();
void run();
long repeat_id;
long delay;
int repeating;
int interrupted;
// Prevent new signal until existing event is processed
Mutex repeat_lock;
private:
Timer timer;
BC_WindowBase *top_level;
// Delay corrected for the time the last repeat took
long next_delay;
Mutex pause_lock;
Mutex startup_lock;
};
#endif