| 19 | } |
| 20 | |
| 21 | MutexBase::MutexBase(int type) |
| 22 | { |
| 23 | type = DebugEnabled(type); |
| 24 | pthread_mutexattr_t attr; |
| 25 | TOFT_CHECK_PTHREAD_ERROR(pthread_mutexattr_init(&attr)); |
| 26 | TOFT_CHECK_PTHREAD_ERROR(pthread_mutexattr_settype(&attr, type)); |
| 27 | TOFT_CHECK_PTHREAD_ERROR(pthread_mutex_init(&m_mutex, &attr)); |
| 28 | TOFT_CHECK_PTHREAD_ERROR(pthread_mutexattr_destroy(&attr)); |
| 29 | } |
| 30 | |
| 31 | MutexBase::~MutexBase() |
| 32 | { |
nothing calls this directly
no test coverage detected