summaryrefslogtreecommitdiff
path: root/src/time/timo.h
blob: 32268df5440da4ddf440f0ee185388f85f74bda6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include "../incl.h"

#ifndef TIMO_H
#define TIMO_H

using namespace std;

class timo // timeout class
{
protected:
  time_t t_time;   // last activity time.
  pthread_mutex_t mut_t_time;

public:
  timo( );
  ~timo( );

  double get_last_activity();
  void renew_timeout();
};

#endif