summaryrefslogtreecommitdiff
path: root/src/time/timo.h
blob: 4eaecf8da2933cba41a0f88facd08daaf9302743 (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