m2.mbcp/src/clock.h
2006-03-06 12:42:03 +00:00

30 lines
430 B
C++

#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;
virtual bool adjust(TimeStamp timestamp) = 0;
};
#endif