~ubuntu-branches/ubuntu/maverick/newsbeuter/maverick

« back to all changes in this revision

Viewing changes to include/mutex.h

  • Committer: Bazaar Package Importer
  • Author(s): Nico Golde
  • Date: 2007-04-21 19:44:35 UTC
  • Revision ID: james.westby@ubuntu.com-20070421194435-21g6134ws2yvarlt
Tags: upstream-0.3
ImportĀ upstreamĀ versionĀ 0.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef AK_MUTEX__H
 
2
#define AK_MUTEX__H
 
3
 
 
4
#include <pthread.h>
 
5
 
 
6
namespace newsbeuter {
 
7
 
 
8
class mutex {
 
9
        public:
 
10
                mutex();
 
11
                ~mutex();
 
12
                void lock();
 
13
                void unlock();
 
14
                bool trylock();
 
15
 
 
16
        private:
 
17
                pthread_mutex_t mtx;
 
18
 
 
19
        friend class condition;
 
20
};
 
21
 
 
22
 
 
23
}
 
24
 
 
25
#endif