Revision 1236 branches/threaded2merge/src/linad99/adthread.h

adthread.h (revision 1236)
25 25
public:
26 26
  int thread_no;
27 27
};
28
class adthread_buffer
29
{
30
public:
31
  adthread_buffer();
32
  adthread_buffer(const adthread_buffer& other);
33
  virtual ~adthread_buffer();
34

  
35
public:
36
  void lock();
37
  void unlock();
38

  
39
  bool islocked() const { return locked; }
40

  
41
private:
42
  bool locked;
43
  pthread_mutex_t mutex;
44
  pthread_cond_t condition;
45
};
28 46
class adpthread_manager
29 47
{
30 48
private:

Also available in: Unified diff