Created
          December 3, 2012 14:51 
        
      - 
      
 - 
        
Save adurpas/4195457 to your computer and use it in GitHub Desktop.  
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | // 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