| 953 | class Mutex : base::NoCopy { |
| 954 | public: |
| 955 | Mutex(void) { |
| 956 | # if ELPP_OS_UNIX |
| 957 | pthread_mutexattr_t attr; |
| 958 | pthread_mutexattr_init(&attr); |
| 959 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); |
| 960 | pthread_mutex_init(&m_underlyingMutex, &attr); |
| 961 | pthread_mutexattr_destroy(&attr); |
| 962 | # elif ELPP_OS_WINDOWS |
| 963 | InitializeCriticalSection(&m_underlyingMutex); |
| 964 | # endif // ELPP_OS_UNIX |
| 965 | } |
| 966 | |
| 967 | virtual ~Mutex(void) { |
| 968 | # if ELPP_OS_UNIX |
nothing calls this directly
no outgoing calls
no test coverage detected