summaryrefslogtreecommitdiff
path: root/src/memb/tupel.h
blob: 864a0923fdcd666fb231f7baceae0582e8b72041 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef TUPEL_H
#define TUPEL_H

#include "../incl.h"

#define mutexed_tupel tupel

using namespace std;

template<class obj_type>
class tupel
{
private:
  pthread_mutex_t mut_tupel;
  obj_type t_obj;

public:

  tupel();
  tupel(obj_type t_obj);
  ~tupel();

  inline obj_type get_elem();
  inline void set_elem(obj_type t_obj);
};

#include "tupel.tmpl"
#endif