m2.mbcp/src/clock.h

30 lines
430 B
C
Raw Permalink Normal View History

2006-02-05 17:43:00 +00:00
#ifndef _GYR_CLOCK
#define _GYR_CLOCK
#include <glibmm.h>
#include <vector>
#include <exception>
#include "timestamp.h"
class ClockUnadjustable : public std::exception { };
class ClockInitError : public std::exception { };
class Clock {
private:
protected:
size_t _size;
size_t _cur_index;
Glib::Mutex _mutex;
public:
virtual TimeStamp inc() = 0;
2006-03-06 12:42:03 +00:00
virtual bool adjust(TimeStamp timestamp) = 0;
2006-02-05 17:43:00 +00:00
};
#endif