Skip to content

Instantly share code, notes, and snippets.

@adurpas
Created December 3, 2012 14:51
Show Gist options
  • Save adurpas/4195457 to your computer and use it in GitHub Desktop.
Save adurpas/4195457 to your computer and use it in GitHub Desktop.
// ISU laboratory session #8, exercise #1.
#ifndef OSAPI_LINUX_MUTEX_HPP
#define OSAPI_LINUX_MUTEX_HPP
#include <pthread.h>
#include <osapi/Utility.hpp>
namespace osapi
{
class Mutex : Notcopyable
{
public:
Mutex();
~Mutex(); // Destructor
void lock();
void unlock();
private:
friend class Conditional;
pthread_mutex_t mtxID_;
};
}
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment