/*************************************************
* POSIX Thread Mutex Header File                 *
* (C) 1999-2003 The Botan Project                *
*************************************************/

#include <botan/mutex.h>

#ifndef BOTAN_EXT_MUTEX_PTHREAD_H__
#define BOTAN_EXT_MUTEX_PTHREAD_H__

namespace Botan {

/*************************************************
* Pthread Mutex                                  *
*************************************************/
class Pthread_Mutex : public Mutex
   {
   public:
      void lock();
      void unlock();
      Mutex* clone() const { return new Pthread_Mutex; }

      Pthread_Mutex();
      ~Pthread_Mutex();
   private:
      struct mutex_wrapper* mutex;
   };

}

#endif
