Yurttas/PL/OOL/Cplusplus/F/02/08/01/00/mutex.h

 1/*
 2   Copyright(C) 2005
 3   All Rights Reserved. Salih Yurttas, ZCubes, BitsOfCode Software Systems, Inc..
 4
 5   Permission to use, copy, modify, and distribute this
 6   software and its documentation for EDUCATIONAL purposes
 7   and without fee is hereby granted provided that this
 8   copyright notice appears in all copies.
 9 
10   date   : September 1, 2005.
11   authorĀ : Austin W. Westfall, Salih Yurttas.
12
13   mutex.h
14*/
15
16
17#ifndef MUTEX_H
18#define MUTEX_H
19
20#include <pthread.h>
21
22class mutex {
23public:
24  mutex();
25  ~mutex();
26
27  void lock();
28
29  void unlock();
30
31private:
32  pthread_mutex_t mut;
33};
34#endif