Commit 58a3a4cc authored by Abdullah Amjad's avatar Abdullah Amjad
Browse files

timer using linux timers

parent 23c29e91
...@@ -30,18 +30,13 @@ ...@@ -30,18 +30,13 @@
#include <ostream> #include <ostream>
#include <map> #include <map>
// #include <process.h>
// #include <windows.h>
#include <stdio.h> #include <stdio.h>
// #include <Mmsystem.h>
#pragma comment(lib, "Winmm.lib" ) #pragma comment(lib, "Winmm.lib" )
#include "DhyanaCompatibility.h" #include "DhyanaCompatibility.h"
#include "lima/Debug.h" #include "lima/Debug.h"
#include "DhyanaCamera.h" #include "DhyanaCamera.h"
#include <errno.h>
using namespace std; using namespace std;
namespace lima namespace lima
...@@ -87,13 +82,11 @@ namespace lima ...@@ -87,13 +82,11 @@ namespace lima
virtual void on_timer() = 0; virtual void on_timer() = 0;
protected: protected:
// int m_timer_id; timer_t m_timer_id;
long m_period_ms; long m_period_ms;
// UINT m_resolution;
int m_nb_triggers; int m_nb_triggers;
struct sigevent m_se; struct sigevent m_se;
struct itimerspec m_ts; struct itimerspec m_ts;
timer_t m_timer_id;
}; };
/****************************************************************** /******************************************************************
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment