28 #if BIO_CPP_VERSION < 11
32 m_lock(m_mutex, std::defer_lock)
37 #if BIO_CPP_VERSION < 11
38 #ifdef BIO_OS_IS_LINUX
39 pthread_mutexattr_t mutexattr;
40 pthread_mutexattr_init(&mutexattr);
41 pthread_mutexattr_settype(&mutexattr, PTHREAD_MUTEX_RECURSIVE);
42 pthread_mutex_init(&m_lock, &mutexattr);
51 #if BIO_CPP_VERSION < 11
55 m_lock(m_mutex, std::defer_lock)
60 #if BIO_CPP_VERSION < 11
61 #ifdef BIO_OS_IS_LINUX
62 pthread_mutexattr_t mutexattr;
63 pthread_mutexattr_init(&mutexattr);
64 pthread_mutexattr_settype(&mutexattr, PTHREAD_MUTEX_RECURSIVE);
65 pthread_mutex_init(&m_lock, &mutexattr);
75 #if BIO_CPP_VERSION < 11
76 #ifdef BIO_OS_IS_LINUX
77 pthread_mutex_destroy(&m_lock);
87 #if BIO_CPP_VERSION < 11
88 #ifdef BIO_OS_IS_LINUX
89 pthread_mutex_lock(&m_lock);
100 #if BIO_CPP_VERSION < 11
101 #ifdef BIO_OS_IS_LINUX
102 pthread_mutex_unlock(&m_lock);
void UnlockThread() const